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 ebe1e1d commit 6f94687Copy full SHA for 6f94687
1 file changed
src/trio/_deprecate.py
@@ -151,7 +151,7 @@ class DeprecatedAttribute:
151
152
def deprecate_attributes(
153
module_name: str, deprecated_attributes: dict[str, DeprecatedAttribute]
154
-) -> Callable[[str], object]:
+) -> None:
155
def __getattr__(name: str) -> object:
156
if name in deprecated_attributes:
157
info = deprecated_attributes[name]
@@ -165,4 +165,4 @@ def __getattr__(name: str) -> object:
165
msg = "module '{}' has no attribute '{}'"
166
raise AttributeError(msg.format(module_name, name))
167
168
- sys.modules[module_name].__getattr__ = __getattr__
+ sys.modules[module_name].__getattr__ = __getattr__ # type: ignore[method-assign]
0 commit comments