diff --git a/src/_griffe/docstrings/google.py b/src/_griffe/docstrings/google.py index dc960bad..f40440f0 100644 --- a/src/_griffe/docstrings/google.py +++ b/src/_griffe/docstrings/google.py @@ -709,7 +709,10 @@ def _read_deprecated_section( version, text = text.split(":", 1) except ValueError: docstring_warning(docstring, new_offset, f"Could not parse version, text at line {offset}") - return None, new_offset + return ( + DocstringSectionDeprecated(version="", text=text), + new_offset, + ) version = version.lstrip() description = text.lstrip()