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

Fix mypy to 1.13.0 to avoid __all__ duplication #3277

Merged
merged 1 commit into from
Dec 30, 2024
Merged

Conversation

MyreMylar
Copy link
Member

@MyreMylar MyreMylar commented Dec 30, 2024

The relevant mypy issue: python/mypy#13300
and PR: python/mypy#18005

Basically MyPy updated and added a new feature of erroring on __all__ not being included in the stubs. I'm not sure we want to do this as constants __all__ is very large. Either way it is some annoying work to solve in the future that is causing the unit tests to fail right now.

This PR just locks us to the previous version before this change was added.

@MyreMylar MyreMylar requested a review from a team as a code owner December 30, 2024 16:40
Copy link
Member

@damusss damusss left a comment

Choose a reason for hiding this comment

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

I agree. it's an unnecessary update, if you don't specify all in a stub it's clear you want everything non-private to be included

Copy link
Member

@ankith26 ankith26 left a comment

Choose a reason for hiding this comment

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

Yeah I agree this is a good solution for now, and that we could probably change it in the future.

@ankith26 ankith26 merged commit be903f9 into main Dec 30, 2024
3 checks passed
@ankith26 ankith26 added this to the 2.5.3 milestone Dec 30, 2024
@ankith26 ankith26 deleted the add-all-to-stubs branch December 30, 2024 18:49
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.

3 participants