[issue25390] Can't define a typing.Union containing a typing.re.Pattern

Guido van Rossum report at bugs.python.org
Tue Oct 13 11:54:36 EDT 2015


Guido van Rossum added the comment:

Confirmed. The failure is because Pattern is _TypeAlias, which is not a type. But it should be allowed. I'll think of something. (Does mypy accept this?)

----------
nosy: +gvanrossum

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25390>
_______________________________________


More information about the Python-bugs-list mailing list