View on GitHub

mypy_boto3

Type annotations for boto3 compatible with mypy, VSCode and PyCharm

Download this project as a .zip file Download this project as a tar.gz file

DocstringParser

Auto-generated documentation for builder.mypy_boto3_builder.parsers.docstring_parser.docstring_parser module.

Botocore docstring parser.

DocstringParser

[find in source code]

class DocstringParser():
    def __init__(
        service_name: ServiceName,
        class_name: str,
        method_name: str,
        arguments: List[Argument],
    ) -> None:

Botocore docstring parser.

Arguments

DocstringParser().get_arguments

[find in source code]

def get_arguments(input_string: str) -> List[Argument]:

Get list of function arguments with type annottions.

Arguments

Returns

A list of Argument structures.

DocstringParser().get_return_type

[find in source code]

def get_return_type(input_string: str) -> FakeAnnotation:

Get function return type annotation.

Arguments

Returns

A valid type annotation.