2 Jul
2022
2 Jul
'22
10:52 p.m.
I find that it's useful to play with proposed language features in a code editor to get a sense for how they feel. I just published version 1.1.257 of pyright, and it contains support for all of the functionality described in the draft PEP 695. To use the new syntax in a ".py" file, you will need to create a "pyrightconfig.json" file in the root directory of your project and add `{ "pythonVersion": "3.12" }`. This isn't necessary if you are editing ".pyi" files. -Eric