Skip to content

Commit

Permalink
Bump pylint to 2.16.2, update changelog (#8276)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Feb 13, 2023
1 parent c8d3fdd commit 0006ae9
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 28 deletions.
54 changes: 54 additions & 0 deletions doc/whatsnew/2/2.16/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,60 @@ Last but not least @clavedeluna and @nickdrozd became triagers, welcome to the t

.. towncrier release notes start
What's new in Pylint 2.16.2?
----------------------------
Release date: 2023-02-13


New Features
------------

- Add `--version` option to `pyreverse`.

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



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

- Fix false positive for ``used-before-assignment`` when
``typing.TYPE_CHECKING`` is used with if/elif/else blocks.

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

- Fix false positive for ``used-before-assignment`` for named expressions
appearing after the first element in a list, tuple, or set.

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



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

- Fix ``used-before-assignment`` false positive when the walrus operator
is used with a ternary operator in dictionary key/value initialization.

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

- Fix ``no-name-in-module`` false positive raised when a package defines a
variable with the
same name as one of its submodules.

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

- Fix ``nested-min-max`` suggestion message to indicate it's possible to splat
iterable objects.

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

- Fix a crash happening when a class attribute was negated in the start
argument of an enumerate.

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


What's new in Pylint 2.16.1?
----------------------------
Release date: 2023-02-02
Expand Down
4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/7574.false_positive

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/7851.feature

This file was deleted.

4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/8125.bugfix

This file was deleted.

4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/8148.bugfix

This file was deleted.

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

This file was deleted.

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

This file was deleted.

4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/8252.false_positive

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.16.1"
__version__ = "2.16.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.16.1"
current = "2.16.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.16.1"
version = "2.16.2"
directory = "doc/whatsnew/fragments"
filename = "doc/whatsnew/2/2.16/index.rst"
template = "doc/whatsnew/fragments/_template.rst"
Expand Down

0 comments on commit 0006ae9

Please sign in to comment.