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

Method or function argument.

Arguments#

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

Signature#

class Argument: ...

Argument().copy#

Show source in argument.py:79

Deep copy argument.

Signature#

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

Argument().copy#

Show source in argument.py:73

Deep copy argument.

Signature#

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

Argument().is_kwflag#

Show source in argument.py:51

Whether argument is a * keywords separator.

Signature#

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

Argument().iterate_types#

Show source in argument.py:57

Extract required type annotations.

Signature#

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

See also#

Argument.kwflag#

Show source in argument.py:44

Create * keywords separator.

Signature#

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

Argument().render#

Show source in argument.py:32

Render argument to a string.

Signature#

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

Argument().required#

Show source in argument.py:66

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

Signature#

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