diff --git a/src/griffe/docstrings/utils.py b/src/griffe/docstrings/utils.py index e2c63ce2..59a88e44 100644 --- a/src/griffe/docstrings/utils.py +++ b/src/griffe/docstrings/utils.py @@ -44,7 +44,7 @@ def warn(docstring: Docstring, offset: int, message: str, log_level: LogLevel = except (AttributeError, ValueError): prefix = "" except BuiltinModuleError: - prefix = f"" + prefix = f"" # type: ignore[union-attr] log = getattr(logger, log_level.value) log(f"{prefix}:{(docstring.lineno or 0)+offset}: {message}")