Skip to content

Commit 168c2cb

Browse files
bobrenjc93pytorchmergebot
authored andcommitted
remove allow-untyped-defs from torch/nn/utils/_deprecation_utils.py (pytorch#144231)
Pull Request resolved: pytorch#144231 Approved by: https://github.com/albanD
1 parent 24ac873 commit 168c2cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torch/nn/utils/_deprecation_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import importlib
22
import warnings
3-
from typing import Any, Callable, List
3+
from typing import Callable, List
44

55

66
_MESSAGE_TEMPLATE = (
@@ -41,7 +41,7 @@ def lazy_deprecated_import(
4141
old_location=old_module, new_location=new_module
4242
)
4343

44-
def getattr_dunder(name: str) -> Any:
44+
def getattr_dunder(name: str) -> None:
4545
if name in all:
4646
# We are using the "RuntimeWarning" to make sure it is not
4747
# ignored by default.

0 commit comments

Comments
 (0)