Map SubtypeOf to SupertypeOf and vice versa.
(op: int)
| 1389 | |
| 1390 | |
| 1391 | def neg_op(op: int) -> int: |
| 1392 | """Map SubtypeOf to SupertypeOf and vice versa.""" |
| 1393 | |
| 1394 | if op == SUBTYPE_OF: |
| 1395 | return SUPERTYPE_OF |
| 1396 | elif op == SUPERTYPE_OF: |
| 1397 | return SUBTYPE_OF |
| 1398 | else: |
| 1399 | raise ValueError(f"Invalid operator {op}") |
| 1400 | |
| 1401 | |
| 1402 | def find_matching_overload_item(overloaded: Overloaded, template: CallableType) -> CallableType: |
no test coverage detected
searching dependent graphs…