mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
enable type checking for torch._classes (#44576)
Summary: Fix https://github.com/pytorch/pytorch/issues/42980 Pull Request resolved: https://github.com/pytorch/pytorch/pull/44576 Reviewed By: malfet Differential Revision: D23668741 Pulled By: walterddr fbshipit-source-id: 4201ea3187a40051ebff53d28c8e571ea1a61126
This commit is contained in:
parent
ad7a2eb1c9
commit
ecac8294a6
3
mypy.ini
3
mypy.ini
|
|
@ -84,9 +84,6 @@ ignore_errors = True
|
|||
[mypy-torch.distributions.*]
|
||||
ignore_errors = True
|
||||
|
||||
[mypy-torch._classes]
|
||||
ignore_errors = True
|
||||
|
||||
[mypy-torch.tensor]
|
||||
ignore_errors = True
|
||||
|
||||
|
|
|
|||
|
|
@ -411,6 +411,9 @@ class PyTorchFileWriter(object):
|
|||
def write_end_of_file(self) -> None: ...
|
||||
...
|
||||
|
||||
# Defined in torch/csrc/jit/python/python_custome_class.cpp
|
||||
def _get_custom_class_python_wrapper(name: str, attr: str) -> Any: ...
|
||||
|
||||
# Defined in torch/csrc/Generator.cpp
|
||||
class Generator(object):
|
||||
device: _device
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user