Łukasz Langa <luk...@langa.pl> added the comment:

> 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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34498>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to