Message410410
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. |
|
Date |
User |
Action |
Args |
2022-01-12 16:26:23 | andreash | set | recipients:
+ andreash, gvanrossum, python-dev, kj, kumaraditya, AlexWaygood |
2022-01-12 16:26:23 | andreash | set | messageid: <1642004783.87.0.0438639124096.issue46333@roundup.psfhosted.org> |
2022-01-12 16:26:23 | andreash | link | issue46333 messages |
2022-01-12 16:26:23 | andreash | create | |
|