You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fixes it, but it's probably just a symptom of a deeper cause, so I'll investigate further.
diff --git a/astroid/nodes/node_classes.py b/astroid/nodes/node_classes.py
index 7bebac9d..885bafff 100644
--- a/astroid/nodes/node_classes.py+++ b/astroid/nodes/node_classes.py@@ -1870,6 +1870,7 @@ class Compare(NodeNG):
ops = self.ops
left_node = self.left
+ context = copy_context(context)
lhs = list(left_node.infer(context=context))
# should we break early if first element is uninferable?
for op, right_node in ops:
Steps to reproduce
pylint tests/.pylint_primer_tests/pandas-dev/pandas/pandas/tests/arrays/test_array.py
Bug description
When parsing the following
a.py
:Command used
Pylint output
pylint crashed with a ``AstroidError`` and with the following stacktrace:
Expected behavior
No crash.
Pylint version
OS / Environment
darwin (Darwin)
Additional dependencies
The text was updated successfully, but these errors were encountered: