pdoc
pdoc copied to clipboard
Deprecation warning for PEP224 class variable docstrings
Expected Behavior
Create output for Python files with PEP224 class variable docstrings without warnings.
Actual Behavior
- .../pdoc/init.py:260: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead isinstance(str_node.value, ast.Str)):
- .../pdoc/init.py:286: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead docstring = inspect.cleandoc(str_node.value.s).strip()
Steps to Reproduce
- Create a python file with a class with a class variable and annotate the class variable with a PEP224 string
- Run pdoc3 on that file
Additional info
- pdoc version: 0.8.1