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 andreash
Recipients AlexWaygood, andreash, gvanrossum, kj, kumaraditya, python-dev
Date 2022-01-12.16:26:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642004783.87.0.0438639124096.issue46333@roundup.psfhosted.org>
In-reply-to
Content
Ah, let me add one point: PEP563  (-> `from __future__ import annotations`) is also not helping. 

Even with PEP563 enabled, the JSON example  

   Json = Union[ List['Json'], Dict[str, 'Json'], int, float, bool, None ]

needs to be written in exact the same way as without PEP563. In other words there are cases where `ForwardRef` cannot be avoided. And unforntunately these are the cases where we have the ForwardRef missing context issue.
History
Date User Action Args
2022-01-12 16:26:23andreashsetrecipients: + andreash, gvanrossum, python-dev, kj, kumaraditya, AlexWaygood
2022-01-12 16:26:23andreashsetmessageid: <1642004783.87.0.0438639124096.issue46333@roundup.psfhosted.org>
2022-01-12 16:26:23andreashlinkissue46333 messages
2022-01-12 16:26:23andreashcreate