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]
)
| 285 | |
| 286 | @singledispatch |
| 287 | def 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 | |
| 301 | def _verify_exported_names( |
no test coverage detected
searching dependent graphs…