(
modules: list[MypyFile], errors: Errors
)
| 762 | |
| 763 | |
| 764 | def 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 | |
| 774 | class SingledispatchVisitor(TraverserVisitor): |
no test coverage detected
searching dependent graphs…