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

antlr4 version deprecation #1535

Open
subbyte opened this issue Jul 19, 2023 · 0 comments
Open

antlr4 version deprecation #1535

subbyte opened this issue Jul 19, 2023 · 0 comments
Labels
dependencies Pull requests that update a dependency file

Comments

@subbyte
Copy link
Member

subbyte commented Jul 19, 2023

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):

  • OS: archlinux
  • Python: 3.11.3

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.

@subbyte subbyte added the dependencies Pull requests that update a dependency file label Jul 19, 2023
subbyte added a commit to subbyte/stix-shifter that referenced this issue Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

1 participant