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 528b18e commit a72049bCopy full SHA for a72049b
src/griffe_warnings_deprecated/extension.py
@@ -0,0 +1,18 @@
1
+"""Deprecated. Import from `griffe_warnings_deprecated` directly."""
2
+
3
+# YORE: Bump 2: Remove file.
4
5
+import warnings
6
+from typing import Any
7
8
+from griffe_warnings_deprecated._internal import extension
9
10
11
+def __getattr__(name: str) -> Any:
12
+ warnings.warn(
13
+ "Importing from `griffe_warnings_deprecated.extension` is deprecated. "
14
+ "Import from `griffe_warnings_deprecated` directly.",
15
+ DeprecationWarning,
16
+ stacklevel=2,
17
+ )
18
+ return getattr(extension, name)
0 commit comments