PEP 484 - type annotations examples
Links
Handsdown API Index / Examples / PEP 484 - type annotations examples
Auto-generated documentation for examples.typed module.
MyValue
Signature
Typed
Signature
class Typed:
def __init__(
self,
_value: Union[List[str], str, MyValue] = MyValue(
{
"key1": "value1",
"key2": "value2",
"key3": "value3",
"key4": "value4",
"key5": "value5",
"key6": "value6",
}
),
_name: str = "default",
) -> Dict[str, MyValue]:
...
See also
Typed().async_method
Signature
Typed.classmethod
Signature
See also
func
Signature
@my_deco(key="value")
def func(
_list: Tuple[List[str], ...], _my_value_cls: Type[MyValue] = MyValue, **_kwargs: None
) -> Optional[MyValue]:
...