summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-12-20 15:33:31 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-12-20 22:52:51 +0100
commit0a042a8a42b7ade556b4eaf028bb2bc073227918 (patch)
treeaf0a6253a0e905c16329e2c8a860f7c8054813d8 /examples
parent10798c97a455254f13dbe5d68a535337126d10ec (diff)
downloadpylint-git-0a042a8a42b7ade556b4eaf028bb2bc073227918.tar.gz
Fix some typoes before adding typing for checker registering
Diffstat (limited to 'examples')
-rw-r--r--examples/custom.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/examples/custom.py b/examples/custom.py
index bd9797e2a..c7429f629 100644
--- a/examples/custom.py
+++ b/examples/custom.py
@@ -7,7 +7,7 @@ from pylint.interfaces import IAstroidChecker
# This is our checker class.
# Checkers should always inherit from `BaseChecker`.
class MyAstroidChecker(BaseChecker):
- """Add class member attributes to the class locals dictionary."""
+ """Add class member attributes to the class local's dictionary."""
# This class variable defines the type of checker that we are implementing.
# In this case, we are implementing an AST checker.
@@ -31,8 +31,7 @@ class MyAstroidChecker(BaseChecker):
options = (
# Each option definition has a name which is used on the command line
# and in config files, and a dictionary of arguments
- # (similar to those to those to
- # argparse.ArgumentParser.add_argument).
+ # (similar to argparse.ArgumentParser.add_argument).
(
"store-locals-indicator",
{
@@ -48,10 +47,7 @@ class MyAstroidChecker(BaseChecker):
def visit_call(self, node: nodes.Call) -> None:
"""Called when a :class:`.nodes.Call` node is visited.
- See :mod:`astroid` for the description of available nodes.
-
- :param node: The node to check.
- """
+ See :mod:`astroid` for the description of available nodes."""
if not (
isinstance(node.func, nodes.Attribute)
and isinstance(node.func.expr, nodes.Name)