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 levkivskyi
Recipients eric.smith, levkivskyi, robieta
Date 2020-05-15.20:48:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589575680.3.0.0571249413756.issue40595@roundup.psfhosted.org>
In-reply-to
Content
Yes, this is as expected. A recommended workaround is to define a type alias like `Match = re.Match` before the class body. You can also suppress the exception with `from __future__ import annotations` (so that the annotations are not evaluated), but static type checkers like mypy will still force you to use the alias.
History
Date User Action Args
2020-05-15 20:48:00levkivskyisetrecipients: + levkivskyi, eric.smith, robieta
2020-05-15 20:48:00levkivskyisetmessageid: <1589575680.3.0.0571249413756.issue40595@roundup.psfhosted.org>
2020-05-15 20:48:00levkivskyilinkissue40595 messages
2020-05-15 20:48:00levkivskyicreate