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

Make visit method arguments pos-only #18361

Merged
merged 2 commits into from
Dec 29, 2024

Conversation

cdce8p
Copy link
Collaborator

@cdce8p cdce8p commented Dec 29, 2024

Extracted from #18356. Make visit_* method arguments positional only to ensure better LSP compatibility. Also update some visitors which don't have violations yet but are base classes for other ones, like TypeTranslator and TypeQuery.

Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@hauntsaninja hauntsaninja merged commit 9463929 into python:master Dec 29, 2024
18 checks passed
@cdce8p cdce8p deleted the fix-subtypes-visitors branch December 29, 2024 22:07
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