(annotation)
| 514 | |
| 515 | |
| 516 | def _normalize_struct_info_proxy(annotation) -> StructInfoProxy: |
| 517 | if annotation is None: |
| 518 | return TupleProxy([]) |
| 519 | elif callable(annotation): |
| 520 | return annotation() |
| 521 | elif isinstance(annotation, StructInfoProxy): |
| 522 | return annotation |
| 523 | else: |
| 524 | raise TypeError(f"Expected StructInfoProxy but got {type(annotation)}.") |
| 525 | |
| 526 | |
| 527 | def _normalize_struct_info(struct_info, dict_globals: dict[str, Any] | None = None) -> StructInfo: |
no test coverage detected
searching dependent graphs…