Skip to content

Shape Type Map#

Mypy_boto3_builder Index / Mypy Boto3 Builder / Type Maps / Shape Type Map

Auto-generated documentation for mypy_boto3_builder.type_maps.shape_type_map module.

get_shape_type_stub#

Show source in shape_type_map.py:84

Get stub type for input botocore shape.

Arguments#

  • shape_type_map - Map to lookup
  • service_name - Service name
  • resource_name - Resource name
  • shape_name - Target Shape name

Returns#

Type annotation or None.

Signature#

def get_shape_type_stub(
    shape_type_maps: Iterable[ShapeTypeMap],
    service_name: ServiceName,
    resource_name: str,
    shape_name: str,
) -> FakeAnnotation | None: ...

See also#