You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vyper Version (output of vyper --version) : 0.3.10+commit.9136169
OS : Linux 6.8.8-arch1-1x86_64 GNU/Linux
Python Version (output of python --version) : Python 3.12.3
What's your issue about?
Deprecation warnings post 3.12
Please include information like:
full output of the error you received
/home/maka/w3/shai/env/lib/python3.12/site-packages/vyper/ast/annotation.py:77: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
if isinstance(n, python_ast.Expr) and isinstance(n.value, python_ast.Str):
/home/maka/w3/shai/env/lib/python3.12/site-packages/vyper/ast/annotation.py:213: DeprecationWarning: Attribute n is deprecated and will be removed in Python 3.14; use value instead
elif isinstance(node.n, float):
/home/maka/w3/shai/env/lib/python3.12/site-packages/vyper/ast/annotation.py:217: DeprecationWarning: Attribute n is deprecated and will be removed in Python 3.14; use value instead
elif isinstance(node.n, int):
# repeated.
A simple passing function without args, was not sufficient.
please try running your example with the --verbose flag turned on cli specified: Settings(compiler_version=None, optimize=None, evm_version=None) # rest is as above
How can it be fixed?
Updating those lines in vyper/ast/annotation.py as outlined in the error as well as referenced here:
Version Information
vyper --version
) : 0.3.10+commit.9136169python --version
) : Python 3.12.3What's your issue about?
Deprecation warnings post 3.12
Please include information like:
Minimal reproduceable:
A simple passing function without args, was not sufficient.
--verbose
flag turned oncli specified: Settings(compiler_version=None, optimize=None, evm_version=None) # rest is as above
How can it be fixed?
Updating those lines in
vyper/ast/annotation.py
as outlined in the error as well as referenced here:Replacing:
python_ast.Str
withpython_ast.Constant
&&(node.n, int)/(node.n, float)
with(node.value, int)/(node.value, float)
Seems to silence warnings while giving desired results.
The text was updated successfully, but these errors were encountered: