Skip to content

Conversation

ilevkivskyi
Copy link
Member

Fixes #4789
This also fixes typeshed problems in internal codebases.

The idea is straightforward add overlooked elif. A better long-term solution may be to refactor has_member to use checkmember.analyze_member_access.

I use pythoneval tests because the original problem only appears currently with full stubs (apparently because int doesn't have operator methods in fixtures).

@ilevkivskyi ilevkivskyi requested a review from JukkaL March 29, 2018 10:28
Copy link
Collaborator

@msullivan msullivan left a comment

Choose a reason for hiding this comment

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

LGTM

@ilevkivskyi
Copy link
Member Author

@JukkaL My understanding is that @msullivan wants to move the typeshed pin before Tuesday when you are back, so I am not waiting for your review (PR is quite straightforward), but if there is something bad please let me know.

@ilevkivskyi ilevkivskyi merged commit 5773c4e into python:master Mar 29, 2018
@ilevkivskyi ilevkivskyi deleted the fix-type-ops branch March 29, 2018 19:29
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.

Variables declared as Type[Foo] doesn't support operators from Foo's metaclass
2 participants