(defn: SymbolNode)
| 9551 | |
| 9552 | |
| 9553 | def is_property(defn: SymbolNode) -> bool: |
| 9554 | if isinstance(defn, FuncDef): |
| 9555 | return defn.is_property |
| 9556 | if isinstance(defn, Decorator): |
| 9557 | return defn.func.is_property |
| 9558 | if isinstance(defn, OverloadedFuncDef): |
| 9559 | if defn.items and isinstance(defn.items[0], Decorator): |
| 9560 | return defn.items[0].func.is_property |
| 9561 | return False |
| 9562 | |
| 9563 | |
| 9564 | def is_settable_property(defn: SymbolNode | None) -> TypeGuard[OverloadedFuncDef]: |
no test coverage detected
searching dependent graphs…