diff --git a/src/_griffe/docstrings/google.py b/src/_griffe/docstrings/google.py index ee06db7b..00cf7086 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()