uplink icon indicating copy to clipboard operation
uplink copied to clipboard

Investigate PEP 563 impact on library

Open prkumar opened this issue 3 years ago • 2 comments

In Python 3.11, PEP 563 (postponed evaluation of annotations) will become the default. We need to investigate how the library's use of annotations will be impacted by this change.

prkumar avatar Dec 30 '21 22:12 prkumar

PEP 563 was originally planned to be turned on by default in Python 3.10, but was postponed to 3.11: https://mail.python.org/archives/list/[email protected]/thread/CLVXXPQ2T2LQ5MP2Y53VVQFCXYWQJHKZ/

prkumar avatar Dec 30 '21 22:12 prkumar

This has become an minor annoyance for me today, as pyflakes complains about my Field("foo") annotations for @json having "F821 undefined name 'foo'".

I marked the lines with # noqa: F821 for now. Is there a better solution?

fdemmer avatar Jan 21 '23 07:01 fdemmer