Message350988
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. |
|
| Date |
User |
Action |
Args |
| 2019-09-02 11:47:29 | divijrajkumar | set | recipients:
+ divijrajkumar |
| 2019-09-02 11:47:29 | divijrajkumar | set | messageid: <1567424849.42.0.765242467495.issue38008@roundup.psfhosted.org> |
| 2019-09-02 11:47:29 | divijrajkumar | link | issue38008 messages |
| 2019-09-02 11:47:29 | divijrajkumar | create | |
|