Eric V. Smith <e...@trueblade.com> 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 <rep...@bugs.python.org> <https://bugs.python.org/issue45857> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com