This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author divijrajkumar
Recipients divijrajkumar
Date 2019-09-02.11:47:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567424849.42.0.765242467495.issue38008@roundup.psfhosted.org>
In-reply-to
Content
Reported this initially on github - https://github.com/python/typing/pull/650

The problem is in the typing code that checks if any of the parent classes for a Protocol are builtin protocols. The code today maintains a whitelist of builtin protocols that are okay to be subclassed, but expects them all to live within the 'collections.abc' module. This means 'typing.ContextManager' and 'typing.AsyncContextManager' cannot be subclassed, even though those protocols are listing in the whitelist.
History
Date User Action Args
2019-09-02 11:47:29divijrajkumarsetrecipients: + divijrajkumar
2019-09-02 11:47:29divijrajkumarsetmessageid: <1567424849.42.0.765242467495.issue38008@roundup.psfhosted.org>
2019-09-02 11:47:29divijrajkumarlinkissue38008 messages
2019-09-02 11:47:29divijrajkumarcreate