Skip to content

Commit 983b3cd

Browse files
committed
chore: Mark legacy stuff with Yore comments
1 parent 9464579 commit 983b3cd

10 files changed

Lines changed: 20 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ classifiers = [
3131
"Typing :: Typed",
3232
]
3333
dependencies = [
34+
# YORE: Bump 1: Replace `2.11.1` with `3.1` within line.
3435
"Jinja2>=2.11.1",
3536
"Markdown>=3.6",
3637
"MarkupSafe>=1.1",
3738
"mkdocs>=1.6",
3839
"mkdocs-autorefs>=1.4",
3940
"pymdown-extensions>=6.3",
41+
# YORE: EOL 3.9: Remove line.
4042
"importlib-metadata>=4.6; python_version < '3.10'",
4143
]
4244

src/mkdocstrings/_internal/handlers/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
from mkdocstrings._internal.inventory import Inventory
3434
from mkdocstrings._internal.loggers import get_logger, get_template_logger
3535

36-
# TODO: remove once support for Python 3.9 is dropped
36+
37+
# YORE: EOL 3.9: Replace block with line 4.
3738
if sys.version_info < (3, 10):
3839
from importlib_metadata import entry_points
3940
else:

src/mkdocstrings/_internal/loggers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
from pathlib import Path
88
from typing import TYPE_CHECKING, Any, Callable
99

10+
# YORE: Bump 1: Replace block with line 2.
1011
try:
1112
from jinja2 import pass_context
12-
except ImportError: # TODO: remove once Jinja2 < 3.1 is dropped
13+
except ImportError:
1314
from jinja2 import contextfunction as pass_context # type: ignore[attr-defined,no-redef]
1415

1516
if TYPE_CHECKING:

src/mkdocstrings/extension.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Deprecated. Import from `mkdocstrings` directly."""
22

3+
# YORE: Bump 1: Remove file.
4+
35
import warnings
46
from typing import Any
57

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
"""Deprecated. Import from `mkdocstrings` directly."""
2+
3+
# YORE: Bump 1: Remove file.

src/mkdocstrings/handlers/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Deprecated. Import from `mkdocstrings` directly."""
22

3+
# YORE: Bump 1: Remove file.
4+
35
import warnings
46
from typing import Any
57

src/mkdocstrings/handlers/rendering.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Deprecated. Import from `mkdocstrings` directly."""
22

3+
# YORE: Bump 1: Remove file.
4+
35
import warnings
46
from typing import Any
57

src/mkdocstrings/inventory.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Deprecated. Import from `mkdocstrings` directly."""
22

3+
# YORE: Bump 1: Remove file.
4+
35
import warnings
46
from typing import Any
57

src/mkdocstrings/loggers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Deprecated. Import from `mkdocstrings` directly."""
22

3+
# YORE: Bump 1: Remove file.
4+
35
import warnings
46
from typing import Any
57

src/mkdocstrings/plugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Deprecated. Import from `mkdocstrings` directly."""
22

3+
# YORE: Bump 1: Remove file.
4+
35
import warnings
46
from typing import Any
57

0 commit comments

Comments
 (0)