(struct: Any)
| 469 | |
| 470 | |
| 471 | def name_map(struct: Any) -> Any: |
| 472 | if isinstance(struct, list): |
| 473 | return [name_map(x) for x in struct] |
| 474 | elif isinstance(struct, tuple): |
| 475 | return tuple([name_map(x) for x in struct]) |
| 476 | elif isinstance(struct, set): |
| 477 | return set([name_map(x) for x in struct]) |
| 478 | elif isinstance(struct, dict): |
| 479 | return {name_map(x): name_map(y) for x, y in struct.items()} |
| 480 | else: |
| 481 | return getattr(struct, 'name', '') |
| 482 | |
| 483 | |
| 484 | class Angle(Node): |
nothing calls this directly
no outgoing calls
no test coverage detected