Undocumented
Function | add_method |
Adds a new method to a class. Deprecated, use add_method_to_class() instead. |
Function | add_method_to_class |
Adds a new method to a class definition. |
Function | deserialize_and_fixup_type |
Undocumented |
Function | _get_argument |
Return the expression for the specific argument. |
Function | _get_bool_argument |
Return the boolean value for an argument to a call or the default if it's not found. |
Function | _get_decorator_bool_argument |
Return the bool argument for the decorator. |
Parameters | |
ctx:ClassDefContext | Undocumented |
name:str | Undocumented |
args:List[ | Undocumented |
return_type:Type | Undocumented |
self_type:Optional[ | Undocumented |
tvar_def:Optional[ | Undocumented |
Parameters | |
api:Union[ | Undocumented |
cls:ClassDef | Undocumented |
name:str | Undocumented |
args:List[ | Undocumented |
return_type:Type | Undocumented |
self_type:Optional[ | Undocumented |
tvar_def:Optional[ | Undocumented |
Undocumented
Parameters | |
data:Union[ | Undocumented |
api:SemanticAnalyzerPluginInterface | Undocumented |
Returns | |
Type | Undocumented |
Parameters | |
call:CallExpr | Undocumented |
name:str | Undocumented |
Returns | |
Optional[ | Undocumented |
Parameters | |
ctx:ClassDefContext | Undocumented |
expr:CallExpr | Undocumented |
name:str | Undocumented |
default:bool | Undocumented |
Returns | |
bool | Undocumented |
Return the bool argument for the decorator.
This handles both @decorator(...) and @decorator.
Parameters | |
ctx:ClassDefContext | Undocumented |
name:str | Undocumented |
default:bool | Undocumented |
Returns | |
bool | Undocumented |