(t: CallableType, s: CallableType)
| 9180 | |
| 9181 | |
| 9182 | def is_same_arg_prefix(t: CallableType, s: CallableType) -> bool: |
| 9183 | return is_callable_compatible( |
| 9184 | t, |
| 9185 | s, |
| 9186 | is_compat=is_same_type, |
| 9187 | is_proper_subtype=True, |
| 9188 | ignore_return=True, |
| 9189 | check_args_covariantly=True, |
| 9190 | ignore_pos_arg_names=True, |
| 9191 | ) |
| 9192 | |
| 9193 | |
| 9194 | def infer_operator_assignment_method(typ: Type, operator: str) -> tuple[bool, str]: |
no test coverage detected
searching dependent graphs…