Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release branch 2.17.2 #8533

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions doc/whatsnew/2/2.17/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,42 @@ so we find problems before the actual release.

.. towncrier release notes start

What's new in Pylint 2.17.2?
----------------------------
Release date: 2023-04-03


False Positives Fixed
---------------------

- ``invalid-name`` now allows for integers in ``typealias`` names:
- now valid: ``Good2Name``, ``GoodName2``.
- still invalid: ``_1BadName``.

Closes #8485 (`#8485 <https://github.com/PyCQA/pylint/issues/8485>`_)

- No longer consider ``Union`` as type annotation as type alias for naming
checks.

Closes #8487 (`#8487 <https://github.com/PyCQA/pylint/issues/8487>`_)

- ``unnecessary-lambda`` no longer warns on lambdas which use its parameters in
their body (other than the final arguments), e.g.
``lambda foo: (bar if foo else baz)(foo)``.

Closes #8496 (`#8496 <https://github.com/PyCQA/pylint/issues/8496>`_)



Other Bug Fixes
---------------

- Fix a crash in pyreverse when "/" characters are used in the output filename
e.g pyreverse -o png -p name/ path/to/project.

Closes #8504 (`#8504 <https://github.com/PyCQA/pylint/issues/8504>`_)


What's new in Pylint 2.17.1?
----------------------------
Release date: 2023-03-22
Expand Down
5 changes: 0 additions & 5 deletions doc/whatsnew/fragments/8485.false_positive

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/8487.false_positive

This file was deleted.

5 changes: 0 additions & 5 deletions doc/whatsnew/fragments/8496.false_positive

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/8504.bugfix

This file was deleted.

2 changes: 1 addition & 1 deletion pylint/__pkginfo__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from __future__ import annotations

__version__ = "2.17.1"
__version__ = "2.17.2"


def get_numversion_from_version(v: str) -> tuple[int, int, int]:
Expand Down
2 changes: 1 addition & 1 deletion tbump.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github_url = "https://github.com/PyCQA/pylint"

[version]
current = "2.17.1"
current = "2.17.2"
regex = '''
^(?P<major>0|[1-9]\d*)
\.
Expand Down
2 changes: 1 addition & 1 deletion towncrier.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.towncrier]
version = "2.17.1"
version = "2.17.2"
directory = "doc/whatsnew/fragments"
filename = "doc/whatsnew/2/2.17/index.rst"
template = "doc/whatsnew/fragments/_template.rst"
Expand Down