Skip to content

Commit c6cb633

Browse files
committed
refactor: Move submodules into an internal folder
1 parent 9995813 commit c6cb633

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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)
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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)

0 commit comments

Comments
 (0)