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

Function normalize_callables

mypy/join.py:709–714  ·  view source on GitHub ↗
(s: ProperType, t: ProperType)

Source from the content-addressed store, hash-verified

707
708
709def normalize_callables(s: ProperType, t: ProperType) -> tuple[ProperType, ProperType]:
710 if isinstance(s, (CallableType, Overloaded)):
711 s = s.with_unpacked_kwargs()
712 if isinstance(t, (CallableType, Overloaded)):
713 t = t.with_unpacked_kwargs()
714 return s, t
715
716
717def is_similar_callables(t: CallableType, s: CallableType) -> bool:

Callers 1

join_typesFunction · 0.85

Calls 2

isinstanceFunction · 0.85
with_unpacked_kwargsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…