Berker Peksag added the comment:
This is basically a duplicate of issue 25830. We can update the docstring of
Any once https://github.com/python/typing/issues/136 is solved.
--
nosy: +berker.peksag
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> _Typ
New submission from Emanuel Barry:
The docstring for typing.Any specifically says "- Any object is an instance of
Any."; in practice however it's not actually the case, as isinstance(x, Any)
raises a TypeError.
AnyMeta makes this behaviour seem intentional, however the official
documentation