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

Method score_callable

mypy/suggestions.py:784–787  ·  view source on GitHub ↗
(self, t: CallableType)

Source from the content-addressed store, hash-verified

782 return 0
783
784 def score_callable(self, t: CallableType) -> int:
785 return sum(self.score_type(x, arg_pos=True) for x in t.arg_types) + self.score_type(
786 t.ret_type, arg_pos=False
787 )
788
789
790def any_score_type(ut: Type, arg_pos: bool) -> float:

Callers 1

find_bestMethod · 0.95

Calls 2

score_typeMethod · 0.95
sumFunction · 0.85

Tested by

no test coverage detected