MCPcopy Index your code
hub / github.com/python/mypy / is_same_arg_prefix

Function is_same_arg_prefix

mypy/checker.py:9182–9191  ·  view source on GitHub ↗
(t: CallableType, s: CallableType)

Source from the content-addressed store, hash-verified

9180
9181
9182def 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
9194def infer_operator_assignment_method(typ: Type, operator: str) -> tuple[bool, str]:

Callers 1

Calls 1

is_callable_compatibleFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…