Check whether `node` corresponds to a final attribute.
(node: SymbolNode | None)
| 5325 | |
| 5326 | |
| 5327 | def is_final_node(node: SymbolNode | None) -> bool: |
| 5328 | """Check whether `node` corresponds to a final attribute.""" |
| 5329 | return isinstance(node, (Var, FuncDef, OverloadedFuncDef, Decorator)) and node.is_final |
| 5330 | |
| 5331 | |
| 5332 | def get_func_def(typ: mypy.types.CallableType) -> SymbolNode | None: |
no test coverage detected
searching dependent graphs…