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

Class FuncCounterVisitor

mypy/report.py:153–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151
152
153class FuncCounterVisitor(TraverserVisitor):
154 def __init__(self) -> None:
155 super().__init__()
156 self.counts = [0, 0]
157
158 def visit_func_def(self, defn: FuncDef) -> None:
159 self.counts[defn.type is not None] += 1
160
161
162class LineCountReporter(AbstractReporter):

Callers 1

on_fileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…