summaryrefslogtreecommitdiff
path: root/doc/whatsnew/fragments
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2023-05-16 08:25:25 -0400
committerGitHub <noreply@github.com>2023-05-16 14:25:25 +0200
commit60daec60011d0b3a6be52c9410d1d7ef0179349d (patch)
tree5bb1d73eb9f8af22ba731a0a64f7bf8f10ba562c /doc/whatsnew/fragments
parentd7baf5d43fa8de68c4c169f731ae5af43ce60790 (diff)
downloadpylint-git-60daec60011d0b3a6be52c9410d1d7ef0179349d.tar.gz
Add optional `prefer-typing-namedtuple` message (#8681)HEADmain
Closes #8660
Diffstat (limited to 'doc/whatsnew/fragments')
-rw-r--r--doc/whatsnew/fragments/8660.extension7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/whatsnew/fragments/8660.extension b/doc/whatsnew/fragments/8660.extension
new file mode 100644
index 000000000..2090d03ac
--- /dev/null
+++ b/doc/whatsnew/fragments/8660.extension
@@ -0,0 +1,7 @@
+Add new ``prefer-typing-namedtuple`` message to the ``CodeStyleChecker`` to suggest
+rewriting calls to ``collections.namedtuple`` as classes inheriting from ``typing.NamedTuple``
+on Python 3.6+.
+
+Requires ``load-plugins=pylint.extensions.code_style`` and ``enable=prefer-typing-namedtuple`` to be raised.
+
+Closes #8660