Skip to content

Conversation

@ilevkivskyi
Copy link
Member

Fixes #656

The problem is if a generic class inherits from a protocol, then GenericMeta.__subclasscheck__()
gets overridden with _ProtocolMeta.__subclasscheck__() that calls the former via super(), thus causing an extra frame.

@ilevkivskyi ilevkivskyi merged commit a522554 into python:master Aug 22, 2019
@ilevkivskyi ilevkivskyi deleted the fix-proto-2 branch August 22, 2019 13:17
@gvanrossum
Copy link
Member

gvanrossum commented Aug 22, 2019 via email

@ilevkivskyi
Copy link
Member Author

Be sure to also merge this upstream in the cpython repo.

The bug is Python 2 specific, but I wanted to add tests to python/cpython to prevent regressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests failing on Python 2

3 participants