You are working on the pyccel/pyccel repository. The source code is checked out at /testbed at commit…
You are working on the pyccel/pyccel repository. The source code is checked out at /testbed at commit…: a task in SWE-Lego-RL-2699 (Harbor dataset). if name == ' main ': a = A() assert isinstance(a, A) leads to: File "/home/emily/Code/pyccel/pyccel/parser/semantic.py", line 6231, in build…
The task
if __name__ == '__main__': a = A() assert isinstance(a, A) ``` leads to: ``` File "/home/emily/Code/pyccel/pyccel/parser/semantic.py", line 6231, in _build_PythonIsInstance class_type = class_or_tuple.cls_name ^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'ClassDef' object has no attribute 'cls_name' ```
Part of Lego-X/Lego-RL-2699.