Skip to content

Commit

Permalink
ci: Ignore mypy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Sep 10, 2023
1 parent 6ba3e04 commit f204260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/griffe/docstrings/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def warn(docstring: Docstring, offset: int, message: str, log_level: LogLevel =
except (AttributeError, ValueError):
prefix = "<module>"
except BuiltinModuleError:
prefix = f"<module: {docstring.parent.module.name}>"
prefix = f"<module: {docstring.parent.module.name}>" # type: ignore[union-attr]
log = getattr(logger, log_level.value)
log(f"{prefix}:{(docstring.lineno or 0)+offset}: {message}")

Expand Down

0 comments on commit f204260

Please sign in to comment.