We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24ac873 commit 168c2cbCopy full SHA for 168c2cb
torch/nn/utils/_deprecation_utils.py
@@ -1,6 +1,6 @@
1
import importlib
2
import warnings
3
-from typing import Any, Callable, List
+from typing import Callable, List
4
5
6
_MESSAGE_TEMPLATE = (
@@ -41,7 +41,7 @@ def lazy_deprecated_import(
41
old_location=old_module, new_location=new_module
42
)
43
44
- def getattr_dunder(name: str) -> Any:
+ def getattr_dunder(name: str) -> None:
45
if name in all:
46
# We are using the "RuntimeWarning" to make sure it is not
47
# ignored by default.
0 commit comments