(
other_type: str, return_type: str = "Self", type_ignore_eq: str = "override"
)
| 148 | |
| 149 | |
| 150 | def binops( |
| 151 | other_type: str, return_type: str = "Self", type_ignore_eq: str = "override" |
| 152 | ) -> list[OpsType]: |
| 153 | extras = {"other_type": other_type, "return_type": return_type} |
| 154 | return [ |
| 155 | ([(None, None)], required_method_binary, extras), |
| 156 | (BINOPS_NUM + BINOPS_CMP, template_binop, extras | {"type_ignore": ""}), |
| 157 | ( |
| 158 | BINOPS_EQNE, |
| 159 | template_binop, |
| 160 | extras | {"type_ignore": _type_ignore(type_ignore_eq)}, |
| 161 | ), |
| 162 | ([(None, None)], unhashable, extras), |
| 163 | (BINOPS_REFLEXIVE, template_reflexive, extras), |
| 164 | ] |
| 165 | |
| 166 | |
| 167 | def binops_overload( |
no test coverage detected
searching dependent graphs…