
July 3, 2022
3:52 a.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