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

Function is_similar_params

mypy/join.py:728–734  ·  view source on GitHub ↗
(t: Parameters, s: Parameters)

Source from the content-addressed store, hash-verified

726
727
728def is_similar_params(t: Parameters, s: Parameters) -> bool:
729 # This matches the logic in is_similar_callables() above.
730 return (
731 len(t.arg_types) == len(s.arg_types)
732 and t.min_args == s.min_args
733 and (t.var_arg() is not None) == (s.var_arg() is not None)
734 )
735
736
737def update_callable_ids(c: CallableType, ids: list[TypeVarId]) -> CallableType:

Callers 1

visit_parametersMethod · 0.85

Calls 2

lenFunction · 0.85
var_argMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…