pdoc icon indicating copy to clipboard operation
pdoc copied to clipboard

Deprecation warning for PEP224 class variable docstrings

Open heseber opened this issue 1 year ago • 0 comments

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

  1. Create a python file with a class with a class variable and annotate the class variable with a PEP224 string
  2. Run pdoc3 on that file

Additional info

  • pdoc version: 0.8.1

heseber avatar Jan 04 '24 17:01 heseber