Skip to content

Conversation

AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Jul 6, 2022

Fixes a few issues I noticed after merging #8235. These __init__ overrides in the subclasses currently have the effect of making type checkers unable to perform type inference for instances of these subclasses, unless we tediously copy/paste the whole overload stack like I propose in this PR. Some of the existing __init__ overrides are also missing a few optional parameters that are present for the subclasses, but not the superclass.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2022

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

@AlexWaygood
Copy link
Member Author

Planning on merging this in a few days, unless there are any objections, since I was the reviewer for the original PR adding tqdm stubs.

@AlexWaygood AlexWaygood merged commit ed0b3a4 into master Jul 15, 2022
@AlexWaygood AlexWaygood deleted the tqdm branch July 15, 2022 09:30
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.

1 participant