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:
Vasiliy Kuznetsov 2021-10-08 18:01:58 -07:00 committed by Facebook GitHub Bot
parent 4a302a3074
commit 566922bbcd

View File

@ -131,7 +131,7 @@ def infer_concrete_type_builder(nn_module, share_types=True):
concrete_type_builder.set_module_list()
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 = {}
# Get user-annotated ignored attributes.