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.
- mypy-boto3-builder / Modules / Mypy Boto3 Builder / Type Maps / Docstring Type Map
get_type_from_docstring
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.