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

Function is_static

mypy/checker.py:9545–9550  ·  view source on GitHub ↗
(func: FuncBase | Decorator)

Source from the content-addressed store, hash-verified

9543
9544
9545def is_static(func: FuncBase | Decorator) -> bool:
9546 if isinstance(func, Decorator):
9547 return is_static(func.func)
9548 elif isinstance(func, FuncBase):
9549 return func.is_static
9550 assert False, f"Unexpected func type: {type(func)}"
9551
9552
9553def is_property(defn: SymbolNode) -> bool:

Callers

nothing calls this directly

Calls 2

isinstanceFunction · 0.85
typeClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…