This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients AlexWaygood, TNThung, eric.smith, gvanrossum, kj
Date 2021-11-21.15:33:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1637508819.45.0.762540077794.issue45857@roundup.psfhosted.org>
In-reply-to
Content
Presumably the correct way to do this is:

def __init__(self, tmp: "Foo|int"):

That is, the entire type hint is a string.
History
Date User Action Args
2021-11-21 15:33:39eric.smithsetrecipients: + eric.smith, gvanrossum, kj, AlexWaygood, TNThung
2021-11-21 15:33:39eric.smithsetmessageid: <1637508819.45.0.762540077794.issue45857@roundup.psfhosted.org>
2021-11-21 15:33:39eric.smithlinkissue45857 messages
2021-11-21 15:33:39eric.smithcreate