MCPcopy
hub / github.com/python/mypy / verify

Function verify

mypy/stubtest.py:287–298  ·  view source on GitHub ↗

Entry point for comparing a stub to a runtime object. We use single dispatch based on the type of ``stub``. :param stub: The mypy node representing a part of the stub :param runtime: The runtime object corresponding to ``stub``

(
    stub: MaybeMissing[nodes.Node], runtime: MaybeMissing[Any], object_path: list[str]
)

Source from the content-addressed store, hash-verified

285
286@singledispatch
287def verify(
288 stub: MaybeMissing[nodes.Node], runtime: MaybeMissing[Any], object_path: list[str]
289) -> Iterator[Error]:
290 """Entry point for comparing a stub to a runtime object.
291
292 We use single dispatch based on the type of ``stub``.
293
294 :param stub: The mypy node representing a part of the stub
295 :param runtime: The runtime object corresponding to ``stub``
296
297 """
298 yield Error(object_path, "is an unknown mypy node", stub, runtime)
299
300
301def _verify_exported_names(

Callers 4

test_moduleFunction · 0.85
verify_mypyfileFunction · 0.85
verify_typeinfoFunction · 0.85
verify_decoratorFunction · 0.85

Calls 1

ErrorClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…