Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning: ast.NameConstant is deprecated and will be removed in Python 3.14; use ast.Constant instead #84

Closed
pawamoy opened this issue Oct 19, 2023 · 1 comment

Comments

@pawamoy
Copy link

pawamoy commented Oct 19, 2023

Reported by a pytest run:

import docstring_parser
__pypackages__/3.12/lib/docstring_parser/__init__.py:14: in <module>
    from .parser import compose, parse, parse_from_object
__pypackages__/3.12/lib/docstring_parser/parser.py:7: in <module>
    from docstring_parser.attrdoc import add_attribute_docstrings
__pypackages__/3.12/lib/docstring_parser/attrdoc.py:17: in <module>
    ast.NameConstant: "value",
/home/pawamoy/.basher-packages/pyenv/pyenv/versions/3.12.0/lib/python3.12/ast.py:1797: in __getattr__
    warnings._deprecated(
/home/pawamoy/.basher-packages/pyenv/pyenv/versions/3.12.0/lib/python3.12/warnings.py:529: in _deprecated
    warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: ast.NameConstant is deprecated and will be removed in Python 3.14; use ast.Constant instead
@pawamoy
Copy link
Author

pawamoy commented Oct 19, 2023

Seems to be fixed by #82

@pawamoy pawamoy closed this as completed Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant