Eric V. Smith <[email protected]> added the comment:
Presumably the correct way to do this is: def __init__(self, tmp: "Foo|int"): That is, the entire type hint is a string. ---------- nosy: +eric.smith _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue45857> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
