Docstring Type Map

mypy-boto3-builder Index / Mypy Boto3 Builder / Type Maps / Docstring Type Map

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

get_type_from_docstring

Show source in docstring_type_map.py:458

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.

Signature

def get_type_from_docstring(type_str: str) -> FakeAnnotation:
    ...

See also