8000 ci: Quality · mkdocstrings/python@b6e782d · GitHub
[go: up one dir, main page]

Skip to content

Commit b6e782d

Browse files
committed
ci: Quality
1 parent 77d156b commit b6e782d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/mkdocstrings/handlers/python/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ class PythonHandler(BaseHandler):
2626

2727
@classmethod
2828
def load_inventory(
29-
cls, in_file: BinaryIO, url: str, base_url: Optional[str] = None, **kwargs
29+
cls,
30+
in_file: BinaryIO,
31+
url: str,
32+
base_url: Optional[str] = None,
33+
**kwargs: Any,
3034
) -> Iterator[Tuple[str, str]]:
3135
"""Yield items and their URLs from an inventory file streamed from `in_file`.
3236
@@ -58,7 +62,7 @@ def get_handler(
5862
Arguments:
5963
theme: The theme to use when rendering contents.
6064
custom_templates: Directory containing custom templates.
61-
config: Configuration passed to the handler.
65+
**config: Configuration passed to the handler.
6266
6367
Returns:
6468
An instance of `PythonHandler`.

src/mkdocstrings/handlers/python/collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
from mkdocstrings.loggers import get_logger
1212

1313
griffe_logger.get_logger = get_logger # patch logger to blend in MkDocs logs
14+
from griffe.agents.extensions import load_extensions # noqa: E402
1415
from griffe.collections import LinesCollection, ModulesCollection # noqa: E402
1516
from griffe.docstrings.parsers import Parser # noqa: E402
16-
from griffe.agents.extensions import load_extensions # noqa: E402
1717
from griffe.loader import GriffeLoader # noqa: E402
1818

1919
logger = get_logger(__name__)

0 commit comments

Comments
 (0)
0