summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2021-08-31 12:27:19 +0200
committerGitHub <noreply@github.com>2021-08-31 12:27:19 +0200
commite1da3c03d2b91f56b0977480856c2a2a6501758a (patch)
treeee0f709ac536d71923c3119e9c5cfdb1db1a0c3a /doc
parent8b778cd5d5a6220b6fc1d6a80e30066ebcabd43e (diff)
downloadpylint-git-e1da3c03d2b91f56b0977480856c2a2a6501758a.tar.gz
Fix false positive ``protected-access`` in typing (#4937)
* Fix false positive ``protected-access`` in typing Class functions can return protected members which can then be passed as arguments to other functions. When using type hints in function definitions these raised a message which they shouldn't do.
Diffstat (limited to 'doc')
-rw-r--r--doc/whatsnew/2.10.rst3
-rw-r--r--doc/whatsnew/2.11.rst10
2 files changed, 8 insertions, 5 deletions
diff --git a/doc/whatsnew/2.10.rst b/doc/whatsnew/2.10.rst
index 09fc52870..85cba1c3f 100644
--- a/doc/whatsnew/2.10.rst
+++ b/doc/whatsnew/2.10.rst
@@ -82,9 +82,6 @@ Other Changes
* ``consider-using-with`` is no longer triggered if a context manager is returned from a function.
-* Fix false positive for ``consider-using-with`` if a context manager is assigned to a
- variable in different paths of control flow (e. g. if-else clause).
-
* pylint does not crash with a traceback anymore when a file is problematic. It
creates a template text file for opening an issue on the bug tracker instead.
The linting can go on for other non problematic files instead of being impossible.
diff --git a/doc/whatsnew/2.11.rst b/doc/whatsnew/2.11.rst
index c2333911f..8524c0a90 100644
--- a/doc/whatsnew/2.11.rst
+++ b/doc/whatsnew/2.11.rst
@@ -20,13 +20,11 @@ New checkers
Extensions
==========
-
* Added new extension ``SetMembershipChecker`` with ``use-set-for-membership`` check:
Emitted when using an in-place defined ``list`` or ``tuple`` to do a membership test. ``sets`` are better optimized for that.
Closes #4776
-
* ``CodeStyleChecker``
* Added ``consider-using-assignment-expr``: Emitted when an assignment is directly followed by an if statement
@@ -40,8 +38,16 @@ Other Changes
* Added ``py-version`` config key (if ``[MASTER]`` section). Used for version dependant checks.
Will default to whatever Python version pylint is executed with.
+
* The ``invalid-name`` message is now more detailed when using multiple naming style regexes.
+* Fix false positive for ``consider-using-with`` if a context manager is assigned to a
+ variable in different paths of control flow (e. g. if-else clause).
+
+ Closes #4751
+
* Fix false positive for ``function-redefined`` for simple type annotations
Closes #4936
+
+* Fix false positive for ``protected-access`` if a protected member is used in type hints of function definitions