Message409296
The original issue is about dispatching on non-parametrized generics like typing.Sequence. isinstance([], typing.Sequence) works, so it could be possible to support dispatching on typing.Sequence. But I have doubts that it is worth to revive such feature, because it needs some effort, and you can use collections.abc.Sequence instead.
But there is a conflict between using annotations in singledispatch() and MyPy (issue46191). |
|
Date |
User |
Action |
Args |
2021-12-29 08:29:23 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, rhettinger, lukasz.langa, techdragon, levkivskyi, selik, Dutcho, enedil, iritkatriel, AlexWaygood |
2021-12-29 08:29:23 | serhiy.storchaka | set | messageid: <1640766563.31.0.0273331417877.issue34498@roundup.psfhosted.org> |
2021-12-29 08:29:23 | serhiy.storchaka | link | issue34498 messages |
2021-12-29 08:29:23 | serhiy.storchaka | create | |
|