Skip to content

Deprecation warning for PEP224 class variable docstrings #436

@heseber

Description

@heseber

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions