You are working on the python-attrs/cattrs repository. The source code is checked out at /testbed at commit…
You are working on the python-attrs/cattrs repository. The source code is checked out at /testbed at commit…: a task in SWE-Lego-RL-2699 (Harbor dataset). The problem is that include subclasses with union strategy - has subclasses still calls cl. subclasses () , and typing.get origin(cl) needs to…
The task
The problem is that `_include_subclasses_with_union_strategy` -> `_has_subclasses` still calls `cl.__subclasses__()`, and `typing.get_origin(cl)` needs to be used here too.
Part of Lego-X/Lego-RL-2699.