File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
src/mkdocstrings_handlers/shell Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ """Deprecated. Import from `mkdocstrings_handlers.shell` directly."""
2+
3+ # YORE: Bump 2: Remove file.
4+
5+ import warnings
6+ from typing import Any
7+
8+ from mkdocstrings_handlers .shell ._internal import config
9+
10+
11+ def __getattr__ (name : str ) -> Any :
12+ warnings .warn (
13+ "Importing from `mkdocstrings_handlers.shell.config` is deprecated. Import from `mkdocstrings_handlers.shell` directly." ,
14+ DeprecationWarning ,
15+ stacklevel = 2 ,
16+ )
17+ return getattr (config , name )
Original file line number Diff line number Diff line change 1+ """Deprecated. Import from `mkdocstrings_handlers.shell` directly."""
2+
3+ # YORE: Bump 2: Remove file.
4+
5+ import warnings
6+ from typing import Any
7+
8+ from mkdocstrings_handlers .shell ._internal import handler
9+
10+
11+ def __getattr__ (name : str ) -> Any :
12+ warnings .warn (
13+ "Importing from `mkdocstrings_handlers.shell.handler` is deprecated. Import from `mkdocstrings_handlers.shell` directly." ,
14+ DeprecationWarning ,
15+ stacklevel = 2 ,
16+ )
17+ return getattr (handler , name )
You can’t perform that action at this time.
0 commit comments