Guido van Rossum <[email protected]> added the comment:
Weird, the docs you cite claims
# Also does not typecheck
ProUserId = NewType('ProUserId', UserId)
but when I try it, it works at runtime and passes mypy (even with --strict) and
also pyright.
So maybe those docs are incorrect? I can't find anything in PEP 484 about this.
In any case I'd drop the newline in the message -- other "Did you mean" errors
don't have those.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue46170>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com