10000 refactor: Support Griffe 0.24 · FasterSpeeding/python@3b9f701 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b9f701

Browse files
committed
refactor: Support Griffe 0.24
1 parent 12cd342 commit 3b9f701

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ classifiers = [
3030
]
3131
dependencies = [
3232
"mkdocstrings>=0.19",
33-
"griffe>=0.11.1",
33+
"griffe>=0.24",
3434
]
3535

3636
[project.urls]

src/mkdocstrings_handlers/python/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def collect(self, identifier: str, config: dict) -> CollectorItem: # noqa: D102
196196
except ImportError as error:
197197
raise CollectionError(str(error)) from error
198198

199-
unresolved, iterations = loader.resolve_aliases(only_exported=True, only_known_modules=True)
199+
unresolved, iterations = loader.resolve_aliases(implicit=False, external=False)
200200
if unresolved:
201201
logger.warning(f"{len(unresolved)} aliases were still unresolved after {iterations} iterations")
202202

src/mkdocstrings_handlers/python/templates/material/_base/signature.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
{%- set ns.render_kw_only_separator = False -%}
3636
{%- endif -%}
3737

38+
{% if parameter.kind.value == "variadic positional" %}*{% elif parameter.kind.value == "variadic keyword" %}**{% endif -%}
3839
{{ parameter.name }}{{ annotation }}{{ default }}
3940
{%- if not loop.last %}, {% endif -%}
4041

0 commit comments

Comments
 (0)
0