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

Function find_singledispatch_register_impls

mypyc/irbuild/prepare.py:764–771  ·  view source on GitHub ↗
(
    modules: list[MypyFile], errors: Errors
)

Source from the content-addressed store, hash-verified

762
763
764def find_singledispatch_register_impls(
765 modules: list[MypyFile], errors: Errors
766) -> SingledispatchInfo:
767 visitor = SingledispatchVisitor(errors)
768 for module in modules:
769 visitor.current_path = module.path
770 module.accept(visitor)
771 return SingledispatchInfo(visitor.singledispatch_impls, visitor.decorators_to_remove)
772
773
774class SingledispatchVisitor(TraverserVisitor):

Callers 1

build_irFunction · 0.90

Calls 3

SingledispatchInfoClass · 0.85
acceptMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…