Commit 27ddb9b
Add pyre-ignore for Future instantiation in common.py and basic_models.py
Summary:
Pyre reports `Call error [29]: typing.Type[Future] is not a function` when instantiating `torch.futures.Future()` because the type stubs declare it as a generic type rather than a callable class.
Added `pyre-ignore[29]` comments to suppress these false positives since `Future` is callable at runtime. This affects:
- `_construct_future_forward` in common.py
- `BasicModel_MultiLayer_with_Future.forward` in basic_models.py
Differential Revision: D898707801 parent 04e90ea commit 27ddb9b
2 files changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
| 577 | + | |
577 | 578 | | |
578 | 579 | | |
579 | 580 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
| 584 | + | |
584 | 585 | | |
585 | 586 | | |
586 | 587 | | |
| |||
0 commit comments