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

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.

Signature

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

See also