Ivan Levkivskyi <levkivs...@gmail.com> added the comment:

> Could we revert abstract types in `typing` to respond True to 
> `isinstance(..., type)` again?

No, making them classes will cause significant performance penalty (I don't 
remember numbers now, but importing `typing` may be twice slower). Plus this 
will re-introduce some bugs and inconsistencies.

> I don't want singledispatch, or any other library like it, to have to 
> special-case typing.

I didn't propose this. I proposed to allow all objects that pretend to be types 
but are not actually instances of `type`.

----------

_______________________________________
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