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

Deprecation warning from ast #97

Open
mgao6767 opened this issue Nov 23, 2024 · 0 comments
Open

Deprecation warning from ast #97

mgao6767 opened this issue Nov 23, 2024 · 0 comments

Comments

@mgao6767
Copy link

Describe the bug
Some deprecation warnings from ast.

Additional context
The following that appear in the code have been deprecated and will be deleted in Python 3.14.

  • ast.Ellipsis
  • ast.Num
  • ast.NameConstant
  • ast.Str
    These can be replaced with ast.Constant.

In addition,

def visit_Num(self, node):
should be visit_Constant instead. Also, node.n should be replaced by node.value.

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