Skip to content

Commit

Permalink
refactor: Support Griffe 0.24
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Nov 13, 2022
1 parent 12cd342 commit 3b9f701
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -30,7 +30,7 @@ classifiers = [
]
dependencies = [
"mkdocstrings>=0.19",
"griffe>=0.11.1",
"griffe>=0.24",
]

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion src/mkdocstrings_handlers/python/handler.py
Expand Up @@ -196,7 +196,7 @@ def collect(self, identifier: str, config: dict) -> CollectorItem: # noqa: D102
except ImportError as error:
raise CollectionError(str(error)) from error

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

Expand Down
Expand Up @@ -35,6 +35,7 @@
{%- set ns.render_kw_only_separator = False -%}
{%- endif -%}

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

Expand Down

0 comments on commit 3b9f701

Please sign in to comment.