summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--astroid/rebuilder.py4
-rw-r--r--tests/unittest_scoped_nodes.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/astroid/rebuilder.py b/astroid/rebuilder.py
index fb78f7bb..10fd5900 100644
--- a/astroid/rebuilder.py
+++ b/astroid/rebuilder.py
@@ -16,7 +16,7 @@
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
# For details: https://github.com/PyCQA/astroid/blob/master/COPYING.LESSER
-"""this module contains utilities for rebuilding a _ast tree in
+"""this module contains utilities for rebuilding an _ast tree in
order to get a single Astroid representation
"""
@@ -456,7 +456,7 @@ class TreeRebuilder:
def visit_decorators(self, node, parent):
"""visit a Decorators node by returning a fresh instance of it"""
- # /!\ node is actually a _ast.FunctionDef node while
+ # /!\ node is actually an _ast.FunctionDef node while
# parent is an astroid.nodes.FunctionDef node
if PY38:
# Set the line number of the first decorator for Python 3.8+.
diff --git a/tests/unittest_scoped_nodes.py b/tests/unittest_scoped_nodes.py
index ccdfacd4..17f609d7 100644
--- a/tests/unittest_scoped_nodes.py
+++ b/tests/unittest_scoped_nodes.py
@@ -1829,7 +1829,7 @@ class ClassNodeTest(ModuleLoader, unittest.TestCase):
def test_instance_bound_method_lambdas_2(self):
"""
Test the fact that a method which is a lambda built from
- a factory is well infered as a bound method (bug pylint 2594)
+ a factory is well inferred as a bound method (bug pylint 2594)
"""
ast_nodes = builder.extract_node(
"""