Skip to content

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:14

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: Literal["*", "**", ""] = "",
    ) -> None: ...

Argument().copy#

Show source in argument.py:84

Deep copy argument.

Signature#

def __copy__(self: Self) -> Self: ...

Argument().copy#

Show source in argument.py:78

Deep copy argument.

Signature#

def copy(self: Self) -> Self: ...

Argument().is_kwflag#

Show source in argument.py:56

Whether argument is a * keywords separator.

Signature#

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

Argument().iterate_types#

Show source in argument.py:62

Extract required type annotations.

Signature#

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

See also#

Argument.kwflag#

Show source in argument.py:49

Create * keywords separator.

Signature#

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

Argument().render#

Show source in argument.py:37

Render argument to a string.

Signature#

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

Argument().required#

Show source in argument.py:71

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

Signature#

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