MCPcopy Index your code
hub / github.com/pydata/xarray / binops

Function binops

xarray/util/generate_ops.py:150–164  ·  view source on GitHub ↗
(
    other_type: str, return_type: str = "Self", type_ignore_eq: str = "override"
)

Source from the content-addressed store, hash-verified

148
149
150def 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
167def binops_overload(

Callers 1

generate_ops.pyFile · 0.85

Calls 1

_type_ignoreFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…