This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lukasz.langa
Recipients Dutcho, enedil, gvanrossum, levkivskyi, lukasz.langa, rhettinger
Date 2018-08-28.12:58:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1535461082.32.0.56676864532.issue34498@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2018-08-28 12:58:02lukasz.langasetrecipients: + lukasz.langa, gvanrossum, rhettinger, levkivskyi, Dutcho, enedil
2018-08-28 12:58:02lukasz.langasetmessageid: <1535461082.32.0.56676864532.issue34498@psf.upfronthosting.co.za>
2018-08-28 12:58:02lukasz.langalinkissue34498 messages
2018-08-28 12:58:02lukasz.langacreate