(
stub: nodes.FuncDef, runtime: Any, static_runtime: MaybeMissing[Any]
)
| 1526 | |
| 1527 | |
| 1528 | def _verify_final_method( |
| 1529 | stub: nodes.FuncDef, runtime: Any, static_runtime: MaybeMissing[Any] |
| 1530 | ) -> Iterator[str]: |
| 1531 | if stub.is_final: |
| 1532 | return |
| 1533 | if getattr(runtime, "__final__", False) or ( |
| 1534 | static_runtime is not MISSING and getattr(static_runtime, "__final__", False) |
| 1535 | ): |
| 1536 | yield "is decorated with @final at runtime, but not in the stub" |
| 1537 | |
| 1538 | |
| 1539 | def _resolve_funcitem_from_decorator(dec: nodes.OverloadPart) -> nodes.FuncItem | None: |
no test coverage detected
searching dependent graphs…