Skip to content

Sync typeshed #6800

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 3 commits into from
May 8, 2019
Merged

Sync typeshed #6800

merged 3 commits into from
May 8, 2019

Conversation

ilevkivskyi
Copy link
Member

Syncing just because we didn't do this for a while (plus to test the recent str.__contains__() signature updates).

mypy/stubgen.py Outdated
@@ -717,7 +717,7 @@ def get_init(self, lvalue: str, rvalue: Expression,
typename = self.print_annotation(annotation)
if (isinstance(annotation, UnboundType) and not annotation.args and
annotation.name == 'Final' and
self.import_tracker.module_for.get('Final') in ('typing, typing_extensions')):
self.import_tracker.module_for.get('Final') in ('typing', 'typing_extensions')):
Copy link
Member

Choose a reason for hiding this comment

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

Nice that we were able to find this with the __contains__ change.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, exactly!

@ilevkivskyi ilevkivskyi merged commit 9c91487 into python:master May 8, 2019
@ilevkivskyi ilevkivskyi deleted the sync-typeshed branch May 8, 2019 20:26
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