Skip to content

Commit fa01f56

Browse files
generatedunixname89002005307016facebook-github-bot
generatedunixname89002005307016
authored andcommitted
Remove default typing argument in PACKAGE file] [batch:81/346] [shard:2/N]
Reviewed By: MaggieMoss Differential Revision: D65066556 fbshipit-source-id: 5eb03b8073f0c27782f1a436deca88fa5b30a69f
1 parent 46989d8 commit fa01f56

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

multipy/runtime/example/fx/examples.py

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
try:
1010
from .some_dependency import a_non_torch_leaf
1111
except ImportError:
12+
# pyre-fixme[21]: Could not find module `some_dependency`.
1213
from some_dependency import a_non_torch_leaf
1314

1415

multipy/runtime/example/generate_examples.py

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
Simple,
2525
)
2626
except ImportError:
27+
# pyre-fixme[21]: Could not find module `examples`.
2728
from examples import (
2829
BatchedModel,
2930
load_library,
@@ -36,11 +37,13 @@
3637
try:
3738
from .fx.examples import SimpleWithLeaf
3839
except ImportError:
40+
# pyre-fixme[21]: Could not find module `fx.examples`.
3941
from fx.examples import SimpleWithLeaf
4042

4143
try:
4244
from .tensorrt_example import make_trt_module
4345
except ImportError:
46+
# pyre-fixme[21]: Could not find module `tensorrt_example`.
4447
from tensorrt_example import make_trt_module
4548

4649

@@ -92,6 +95,7 @@ def main() -> None:
9295
global p
9396
args = parser.parse_args()
9497
if args.install_dir is None:
98+
# pyre-fixme[10]: Name `p` is used but not defined.
9599
p = Path(__file__).parent / "generated"
96100
p.mkdir(exist_ok=True)
97101
else:

multipy/runtime/testdev/test_deploy_from_python.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import unittest
88

9+
# pyre-fixme[21]: Could not find module `test_deploy_python_ext`.
910
# @manual=//multipy/runtime:test_deploy_python_ext
1011
import test_deploy_python_ext
1112

multipy/runtime/unity/tests/simple_model.py

+3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
# LICENSE file in the root directory of this source tree.
66

77
import torch
8+
9+
# pyre-fixme[21]: Could not find name `nn` in `torch`.
810
from torch import nn
911

1012

13+
# pyre-fixme[11]: Annotation `Module` is not defined as a type.
1114
class SimpleModel(nn.Module):
1215
def __init__(self):
1316
super(SimpleModel, self).__init__()

0 commit comments

Comments
 (0)