pytorch/torch/nn/utils
Aaron Orenstein 5a0068cc69 [BE] mypy: disallow untyped decorators (#131428)
Untyped decorators strip the types from their decorated function so even if the underlying function is fully typed then callers to it don't get any benefit from type annotations.

Step 1 - Enable the error and override in all the offending files.

#131429

Pull Request resolved: https://github.com/pytorch/pytorch/pull/131428
Approved by: https://github.com/justinchuby, https://github.com/oulgen
2024-07-23 21:50:55 +00:00
..
_expanded_weights
__init__.py
_deprecation_utils.py
_named_member_accessor.py
_per_sample_grad.py
clip_grad.py [BE] mypy: disallow untyped decorators (#131428) 2024-07-23 21:50:55 +00:00
convert_parameters.py
fusion.py
init.py
memory_format.py
parametrizations.py
parametrize.py [BE] mypy: disallow untyped decorators (#131428) 2024-07-23 21:50:55 +00:00
prune.py [BE][Easy] apply autofix for ruff rules unnecessary-collection-call (C408): list() / tuple() / dict() (#130199) 2024-07-11 17:30:28 +00:00
rnn.py
rnn.pyi Use Generic TypeAlias (PEP 585) and Union Type (PEP 604) in .pyi stub files (#129419) 2024-06-29 09:23:39 +00:00
spectral_norm.py
stateless.py
weight_norm.py