Docstring Type Map

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

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

get_type_from_docstring

[find in source code]

def get_type_from_docstring(type_str: str) -> FakeAnnotation:

Get type annotation for a string extracted from docstring.

Arguments

  • type_str - Type name in docstring.

Raises

  • ValueError - If type_str not found in map.

See also