summaryrefslogtreecommitdiff
path: root/doc/user_guide
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2022-11-14 16:48:04 +0100
committerGitHub <noreply@github.com>2022-11-14 16:48:04 +0100
commitfbbc9e81d1b9c1f93f7ae856d71ce4aeedff353a (patch)
tree6a1d6d0148dac788a3fc678a256db68c6cc19fc8 /doc/user_guide
parent6de674ced02985a2fa23a8e46c11a5328ea117be (diff)
downloadpylint-git-fbbc9e81d1b9c1f93f7ae856d71ce4aeedff353a.tar.gz
Improve `invalid-slice-index` and add `invalid-slice-step` (#7762)
Diffstat (limited to 'doc/user_guide')
-rw-r--r--doc/user_guide/checkers/features.rst3
-rw-r--r--doc/user_guide/messages/messages_overview.rst1
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/user_guide/checkers/features.rst b/doc/user_guide/checkers/features.rst
index 974e1fa30..9b6a4b899 100644
--- a/doc/user_guide/checkers/features.rst
+++ b/doc/user_guide/checkers/features.rst
@@ -1155,6 +1155,9 @@ Typecheck checker Messages
:invalid-slice-index (E1127): *Slice index is not an int, None, or instance with __index__*
Used when a slice index is not an integer, None, or an object with an
__index__ method.
+:invalid-slice-step (E1144): *Slice step cannot be 0*
+ Used when a slice step is 0 and the object doesn't implement a custom
+ __getitem__ method.
:too-many-function-args (E1121): *Too many positional arguments for %s call*
Used when a function call passes too many positional arguments.
:unexpected-keyword-arg (E1123): *Unexpected keyword argument %r in %s call*
diff --git a/doc/user_guide/messages/messages_overview.rst b/doc/user_guide/messages/messages_overview.rst
index bab18aad7..faabacc28 100644
--- a/doc/user_guide/messages/messages_overview.rst
+++ b/doc/user_guide/messages/messages_overview.rst
@@ -102,6 +102,7 @@ All messages in the error category:
error/invalid-repr-returned
error/invalid-sequence-index
error/invalid-slice-index
+ error/invalid-slice-step
error/invalid-slots
error/invalid-slots-object
error/invalid-star-assignment-target