Method Type Map

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

String to type annotation map that find type annotation by method and argument name.

get_method_type_stub

[find in source code]

def get_method_type_stub(
    service_name: ServiceName,
    class_name: str,
    method_name: str,
    argument_name: str,
) -> FakeAnnotation | None:

Get stub type for method argument.

Arguments

  • service_name - Service name.
  • class_name - Parent class name.
  • method_name - Method name.
  • argument_name - Argument name.

Returns

Type annotation or None.

See also