Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Alexiril
Copy link
Contributor

Hi!

I started experimenting with ANTLR and Python again and noticed (again) that literally most of ANTLR's runtime internal functions are not fully typed (strict type checkers were screaming because of many “Unknown” or “Incomplete” type annotations instead of correct ones). I've already had to reinvent the wheel twice to get around this problem and make full use of the powerful type annotation system, but those were ugly solutions.

So, I tried my best to fix those type stubs at least particularly. I couldn't fix all “Unknown” or “Incomplete” yet; the ANTLR runtime code is kinda a mess. But I hope a bit later I will understand it enough to fix it entirely.

@Alexiril Alexiril marked this pull request as draft November 16, 2025 16:41
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@Alexiril
Copy link
Contributor Author

Sorry for multiple tests fixing commits. I'm making real typeshed stubs for the first time.

@Alexiril Alexiril marked this pull request as ready for review November 17, 2025 05:34
@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Don't worry about the number of commits, this is normal even for experienced typeshed contributors.

@srittau srittau merged commit 09da7a4 into python:main Nov 17, 2025
48 checks passed
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

Successfully merging this pull request may close these issues.

2 participants