Argument#
- class src.pyconverter.xml2py.ast_tree.Argument(element: str | Element, initial_argument: List, description: Element | str | None = None)#
 Argument object.
Overview#
Find the first type matching a given type string recursively.  | 
|
String representation of the parameter types.  | 
|
Resize the description to a maximum length.  | 
|
Return a list of string to enable converting the element to an RST format.  | 
|
Return the Python signature of the argument.  | 
Python-compatible term.  | 
|
Check if the argument is an elipsis.  | 
|
One or more parameter types.  | 
Import detail#
from src.pyconverter.xml2py.ast_tree import Argument
Property detail#
- property Argument.is_arg_elipsis#
 Check if the argument is an elipsis.
- Returns:
 - bool
 True if the argument is an elipsis, False otherwise.
- property Argument.multiple_args#
 
Method detail#
- Argument.rec_find(_type: str, terms=None) Element | None#
 Find the first type matching a given type string recursively.
- Argument.resized_description(description: str | None = None, max_length: int = 100, indent: str = '') List[str]#
 Resize the description to a maximum length.