Author:
Source
PyCharm 2022.2 introduces support for several Python 3.11 features, such as exception groups and the except* operator, new notations for individual TypedDict keys, and variadic generics. With the improved HTTP Client, you can select a run environment using an icon on the gutter and send queries over HTTP and WebSocket protocols out of the box. The new Run Current File feature allows you to instantly run and debug a single file without a dedicated run configuration.
New in PyCharm
- Code insight for exception groups and except* operator
Get helpful warnings about forbidden combinations, likeexcept
andexcept*
operators in the sametry
statement, orcontinue
,break
, andreturn
operators insideexcept*
clauses. - Code insight for marking individual TypedDict items as required or potentially missing
Make use of the new notations instead of creating complex class hierarchies that use thetotal
parameter. PyCharm 2022.2 understandsRequired[ ]
andNotRequired[ ]
notations for individual keys of TypedDict and provides code insight for them. - HTTP Client
Enhance your productivity in web development. You can now select a run environment using an icon on the gutter and send queries over HTTP and WebSocket protocols out of the box. - Initial Support for PyScript
Put new technologies to work and experiment with new things! PyCharm 2022.2 recognizes Python syntax, including NumPy and Matplotlib libraries, for code inside <py-script> tags in html files and provides proper code completion and highlighting for it.
Find more details about new features and improvements on our What’s New page.