We’ve just released the second bug-fix update for PyCharm 2022.2.

You can update to this version from inside the IDE, by using the Toolbox App, or by using snaps if you are a Ubuntu user. You can also download it from our website.

In this minor release, we’ve included major improvements for Python dataclass support. 

For the attrs package, PyCharm now recognizes modern APIs such as attrs.define, attrs.mutable, attrs.frozen that are treated in the same way as attr.s, and attrs.field that is treated in the same way as attr.ib.

PyCharm recognizes references to class attributes in docstrings, most prominently in definitions of dataclasses and named tuples.

Rename refactoring of dataclass attributes has been improved. Renaming them in the constructor call will update the definition and vice versa. This also includes renaming attributes from docstrings. 

This latest release includes the following fixes and improvements:

Fixed regression: Python console works for projects where a remote interpreter was set up with the previous PyCharm version. [PY-55396]Fixed regression: New Django projects on SSH or WSL are created with a specific directory structure and the necessary environment. [PY-55110]Fixed regression: Introspection for interpreters located in the Docker images with non-root users now works. [PY-50970]Parameterized “types” built-in is now recognized inside type hints. [PY-46257]enum.auto() calls are no longer reported as requiring an argument. [PY-53388]The Markdown auto-formatting action now correctly formats Markdown files with tables. [IDEA-262735]The IDE now shows a balloon notification in the background for pre-commit checks that finish with failing results. [IDEA-265084]Performance improvement: There is no longer a slowdown in debugging performance when the watch return values option is enabled. [IDEA-300696]

You can find a full list of the resolved issues in the release notes.

We always look forward to your feedback and bug reports in our issue tracker.

Categories: Python