Python types
If you need a refresher about how to use Python type hints, read here Python Type Checking (Guide).
You can also check the mypy cheat sheet. In short (very short), you can declare a function with parameters like:
from enum import Enum
class Color(Enum):
WHITE = 1
RED = 2
def type_example(name: str, formal: bool, exit: int, amount: float, color: Color, *args: str, **kwargs: int):
pass
And your editor (and DynaCLI) will know that:
nameis type ofstrand is a required parameter.formalis type ofbooland is a required parameter.exitis type ofintand is a required parameter.amountis type offloatand is a required parameter.coloris type ofColorand is a required parameter.*argsvariable length arguments with type ofstr.**kwargskeyword arguments with type ofint.
These type hints are what give you autocomplete in your editor and several other features.
DynaCLI is based on these type hints.