diff options
-rw-r--r-- | astroid/objects.py | 4 | ||||
-rw-r--r-- | astroid/tests/unittest_inference.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/astroid/objects.py b/astroid/objects.py index 5318f439..b11e3bc9 100644 --- a/astroid/objects.py +++ b/astroid/objects.py @@ -39,7 +39,7 @@ an AST node and where to use an inference object: on its own. This is the case for slices for instance, e.g "[2:3:4]". In this case, trying to write "2:3:4" on its own will fail. The respective builtin (slice) returns a custom object when inferring - and not an AST node per se. + and not an AST node per se. """ @@ -78,7 +78,7 @@ class Slice(node_classes.Slice): @decorators.cachedproperty def _proxied(self): builtins = MANAGER.astroid_cache[BUILTINS] - return builtins.getattr('slice')[0] + return builtins.getattr('slice')[0] def pytype(self): return '%s.slice' % BUILTINS diff --git a/astroid/tests/unittest_inference.py b/astroid/tests/unittest_inference.py index 0cef920b..75eed790 100644 --- a/astroid/tests/unittest_inference.py +++ b/astroid/tests/unittest_inference.py @@ -3586,7 +3586,7 @@ class SliceTest(unittest.TestCase): ] for code, values in ast_nodes: lower, upper, step = values - node = test_utils.extract_node(code) + node = test_utils.extract_node(code) inferred = next(node.infer()) self.assertIsInstance(inferred, objects.Slice) lower_value = next(inferred.igetattr('start')) |