Skip to content

TypeConstant#

Mypy_boto3_builder Index / Mypy Boto3 Builder / Type Annotations / TypeConstant

Auto-generated documentation for mypy_boto3_builder.type_annotations.type_constant module.

EllipsisType#

Show source in type_constant.py:12

Placeholder for ....

Signature#

class EllipsisType: ...

TypeConstant#

Show source in type_constant.py:21

Wrapper for constant like False or "test".

Arguments#

  • value - Constant value.

Signature#

class TypeConstant(FakeAnnotation):
    def __init__(self, value: ValueType) -> None: ...

See also#

TypeConstant().copy#

Show source in type_constant.py:46

Create a copy of type annotation wrapper.

Signature#

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

TypeConstant().render#

Show source in type_constant.py:34

Render type annotation to a valid Python code for local usage.

Returns#

A string with a valid type annotation.

Signature#

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