Skip to content

Commit f392c60

Browse files
committed
Use type(ctx) instead of ctx.__class__
1 parent 0e817b7 commit f392c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/computation/expr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ def visit_Attribute(self, node, **kwargs):
637637
return resolved
638638
raise
639639

640-
raise ValueError(f"Invalid Attribute context {ctx.__class__.__name__}")
640+
raise ValueError(f"Invalid Attribute context {type(ctx).__name__}")
641641

642642
def visit_Call(self, node, side=None, **kwargs):
643643

0 commit comments

Comments
 (0)