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

Function is_final_node

mypy/nodes.py:5327–5329  ·  view source on GitHub ↗

Check whether `node` corresponds to a final attribute.

(node: SymbolNode | None)

Source from the content-addressed store, hash-verified

5325
5326
5327def 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
5332def get_func_def(typ: mypy.types.CallableType) -> SymbolNode | None:

Calls 1

isinstanceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…