[Python-ideas] Runtime types vs static types

Lucas Wiman lucas.wiman at gmail.com
Sun Jul 2 15:14:28 EDT 2017

On Sun, Jul 2, 2017 at 4:54 AM, Steven D'Aprano <steve at pearwood.info> wrote:

> I think that the current status is that the MyPy folks, including Guido,
> consider that it *is* reasonable to ask these questions for the purpose
> of introspection, but issubclass and isinstance are not the way to do
> it.

That may have once been the viewpoint of the developers of typing/MyPy,
though it seems to have changed. The current view is that this should be
implemented in a third party library. Further discussion is here

- Lucas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170702/b8d72200/attachment.html>

More information about the Python-ideas mailing list