mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
clean up mypy nit in torch/jit/_recursive.py (#66253)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/66253 This was initially broken in #65829 and unbroken in #66003, this PR cleans it up by removing the mypy ignore line. Test Plan: ``` mypy torch/jit/_recursive.py --no-incremental ``` Imported from OSS Reviewed By: supriyar Differential Revision: D31475100 fbshipit-source-id: 46ab2ede72c08b926f4f9a6b03b1a1375b884c8a
This commit is contained in:
parent
4a302a3074
commit
566922bbcd
|
|
@ -131,7 +131,7 @@ def infer_concrete_type_builder(nn_module, share_types=True):
|
||||||
concrete_type_builder.set_module_list()
|
concrete_type_builder.set_module_list()
|
||||||
|
|
||||||
class_annotations = getattr(nn_module, '__annotations__', {})
|
class_annotations = getattr(nn_module, '__annotations__', {})
|
||||||
if isinstance(nn_module, (torch.ao.quantization.QuantWrapper)): # type: ignore[attr-defined]
|
if isinstance(nn_module, (torch.ao.quantization.QuantWrapper)):
|
||||||
class_annotations = {}
|
class_annotations = {}
|
||||||
|
|
||||||
# Get user-annotated ignored attributes.
|
# Get user-annotated ignored attributes.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user