Message324248
> I would say we could update the check in `functools` to accept more things.
Could we revert abstract types in `typing` to respond True to `isinstance(..., type)` again? I don't want singledispatch, or any other library like it, to have to special-case typing. Especially for *non-generic* variants, responding True to `isinstance()` seems reasonable to me. We cannot dispatch by `Sequence[int]` and some such so it makes sense for *those* to keep failing going forward.
The current suggested workaround of using abc.Sequence instead will work. |
|
| Date |
User |
Action |
Args |
| 2018-08-28 12:58:02 | lukasz.langa | set | recipients:
+ lukasz.langa, gvanrossum, rhettinger, levkivskyi, Dutcho, enedil |
| 2018-08-28 12:58:02 | lukasz.langa | set | messageid: <[email protected]> |
| 2018-08-28 12:58:02 | lukasz.langa | link | issue34498 messages |
| 2018-08-28 12:58:02 | lukasz.langa | create | |
|