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

Function get_singledispatch_info

mypy/plugins/singledispatch.py:36–39  ·  view source on GitHub ↗
(typ: Instance)

Source from the content-addressed store, hash-verified

34
35
36def get_singledispatch_info(typ: Instance) -> SingledispatchTypeVars | None:
37 if len(typ.args) == 2:
38 return SingledispatchTypeVars(*typ.args) # type: ignore[arg-type]
39 return None
40
41
42T = TypeVar("T")

Callers 2

register_functionFunction · 0.85

Calls 2

lenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…