Skip to content

Commit

Permalink
ci: Type warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Aug 9, 2024
1 parent 2cf2c46 commit e487651
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/_griffe/c3linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __repr__(self) -> str:
@property
def heads(self) -> list[_T | None]:
"""Return the heads."""
return [lst.head for lst in self._lists]
return [lst.head for lst in self._lists] # type: ignore[misc]

@property
def tails(self) -> _DependencyList:
Expand Down
2 changes: 1 addition & 1 deletion src/_griffe/docstrings/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def parse_docstring_annotation(
if code.body: # type: ignore[attr-defined]
name_or_expr = safe_get_annotation(
code.body, # type: ignore[attr-defined]
parent=docstring.parent,
parent=docstring.parent, # type: ignore[arg-type]
log_level=log_level,
)
return name_or_expr or annotation
Expand Down
2 changes: 1 addition & 1 deletion src/_griffe/extensions/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def _load_extension(
# If the loaded object is an extension class, instantiate it with options and return it.
# YORE: Bump 1: Replace `ext_classes` with `Extension` within line.
if isclass(ext_object) and issubclass(ext_object, ext_classes):
return ext_object(**options) # type: ignore[misc]
return ext_object(**options)

# Otherwise the loaded object is a module, so we get the extension class by name,
# instantiate it with options and return it.
Expand Down

0 comments on commit e487651

Please sign in to comment.