(t: Type, s: Type)
| 783 | |
| 784 | |
| 785 | def safe_join(t: Type, s: Type) -> Type: |
| 786 | # This is a temporary solution to prevent crashes in combine_similar_callables() etc., |
| 787 | # until relevant TODOs on handling arg_kinds will be addressed there. |
| 788 | if not isinstance(t, UnpackType) and not isinstance(s, UnpackType): |
| 789 | return join_types(t, s) |
| 790 | if isinstance(t, UnpackType) and isinstance(s, UnpackType): |
| 791 | return UnpackType(join_types(t.type, s.type)) |
| 792 | return object_or_any_from_type(get_proper_type(t)) |
| 793 | |
| 794 | |
| 795 | def safe_meet(t: Type, s: Type) -> Type: |
no test coverage detected
searching dependent graphs…