Update annotations info of living objects using type_comments.
Unknown Field: copyright | |
Copyright 2007-2022 by the Sphinx team, see AUTHORS. | |
Unknown Field: license | |
BSD, see LICENSE for details. |
Variable | logger |
Undocumented |
Function | get_type_comment |
Get type_comment'ed FunctionDef object from living object. |
Function | not_suppressed |
Check given argtypes is suppressed type_comment or not. |
Function | setup |
Undocumented |
Function | signature_from_ast |
Return a Signature object for the given node. |
Function | update_annotations_using_type_comments |
Update annotations info of obj using type_comments. |
Get type_comment'ed FunctionDef object from living object.
This tries to parse original code for living object and returns Signature for given obj. It requires py38+ or typed_ast module.
Parameters | |
obj:Any | Undocumented |
bound_method:bool | Undocumented |
Returns | |
Signature | Undocumented |
Parameters | |
argtypes:List[ | Undocumented |
Returns | |
bool | Undocumented |
Parameters | |
node:ast.FunctionDef | Undocumented |
bound_method:bool | Specify node is a bound method or not |
type_comment:ast.FunctionDef | Undocumented |
Returns | |
Signature | Undocumented |
Parameters | |
app:Sphinx | Undocumented |
obj:Any | Undocumented |
bound_method:bool | Undocumented |