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
Describe the bug
library deprecation warning when running Kestrel unit test
tests/test_command_assign.py::test_assign_after_new[x = p-2]
/lib/python3.11/site-packages/antlr4/Lexer.py:12: DeprecationWarning: typing.io is deprecated, import directly from typing instead. typing.io will be removed in Python 3.12.
from typing.io import TextIO
tests/test_command_assign.py::test_assign_after_new[x = p-2]
/lib/python3.11/site-packages/antlr4/Parser.py:6: DeprecationWarning: typing.io is deprecated, import directly from typing instead. typing.io will be removed in Python 3.12.
from typing.io import TextIO
To Reproduce
install kestrel-lang 1.7.1 (with stix-shifter 5.3.1 automatically)
run pytest
Expected behavior
no warning
Desktop (please complete the following information):
Describe the bug
library deprecation warning when running Kestrel unit test
To Reproduce
install kestrel-lang 1.7.1 (with stix-shifter 5.3.1 automatically)
run
pytest
Expected behavior
no warning
Desktop (please complete the following information):
Solution
In the latest antlr4 v4.13.0, this is not an issue:
https://github.com/antlr/antlr4/blob/dev/runtime/Python3/src/antlr4/Lexer.py
So update the version of the dependency should be good.
The text was updated successfully, but these errors were encountered: