Skip to content

Fixed Any and Dict missing from stubgen imports list #9900

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

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

AWhetter
Copy link
Contributor

Description

This fixes an issue introduced in https://github.com/python/mypy/pull/9088/files where Any and Dict are missing from the list of default imports that stubgen can perform, due to a missing comma.

Test Plan

Because this is such a small change I just did a quick manual test by using stubgen on a module that uses both Any and Dict.

Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

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

Great find! This is a bit of a misfeature in Python... :-(

@gvanrossum gvanrossum merged commit e9edcb9 into python:master Jan 12, 2021
@AWhetter AWhetter deleted the fix_stubgen_types branch July 10, 2023 01:59
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