Argument

mypy-boto3-builder Index / Mypy Boto3 Builder / Structures / Argument

Auto-generated documentation for mypy_boto3_builder.structures.argument module.

Argument

Show source in argument.py:12

Method or function argument.

Arguments

  • name - Argument name.
  • type_annotation - Argument type annotation.
  • value - Default argument value.
  • prefix - Used for starargs.

Signature

class Argument:
    def __init__(
        self,
        name: str,
        type_annotation: FakeAnnotation | None,
        default: TypeConstant | None = None,
        prefix: str = "",
    ):
        ...

Argument().is_kwflag

Show source in argument.py:54

Whether argument is a * keywords separator.

Signature

def is_kwflag(self) -> bool:
    ...

Argument().iterate_types

Show source in argument.py:60

Extract required type annotations.

Signature

def iterate_types(self) -> Iterator[FakeAnnotation]:
    ...

See also

Argument.kwflag

Show source in argument.py:47

Create * keywords separator.

Signature

@classmethod
def kwflag(cls: type[_R]) -> _R:
    ...

Argument().render

Show source in argument.py:35

Render argument to a string.

Signature

def render(self) -> str:
    ...

Argument().required

Show source in argument.py:69

Whether argument does not have a default value and is required.

Signature

@property
def required(self) -> bool:
    ...