Alex Waygood <alex.wayg...@gmail.com> added the comment:
Yes, there are a few exceptions to that :( ``` >>> from typing import Annotated >>> x = Annotated[int, "idk some int"] >>> x() 0 >>> isinstance(x, type) False >>> >>> from re import Pattern >>> y = Pattern[str] >>> y() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: cannot create 're.Pattern' instances >>> isinstance(y, type) True ``` ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45665> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com