Shape Type Map

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

String to type annotation map to replace overriden botocore shapes.

get_shape_type_stub

[find in source code]

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

Get stub type for input botocore shape.

Arguments

  • shape_type_map - Map to lookup
  • service_name - Service name
  • shape_name - Target TypedDict name

Returns

Type annotation or None.

See also