(type_info, component_name: str, prop_name: str)
| 77 | |
| 78 | |
| 79 | def generate_union(type_info, component_name: str, prop_name: str): |
| 80 | types = [] |
| 81 | for union in type_info["value"]: |
| 82 | u_type = get_prop_typing(union["name"], component_name, prop_name, union) |
| 83 | if u_type not in types: |
| 84 | types.append(u_type) |
| 85 | return f"typing.Union[{', '.join(types)}]" |
| 86 | |
| 87 | |
| 88 | def generate_tuple( |
nothing calls this directly
no test coverage detected
searching dependent graphs…