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

Strings

Auto-generated documentation for builder.mypy_boto3_builder.utils.strings module.

Multiple string utils collection.

get_class_prefix

[find in source code]

def get_class_prefix(func_name: str) -> str:

Get a valid Python class prefix from func_name.

Arguments

Returns

String with a class prefix.

get_line_with_indented

[find in source code]

def get_line_with_indented(
    input_string: str,
    multi_first_line: bool = False,
) -> str:

Get first line of the string with all indented lines.

Fixes invalid unindent.

Arguments

Returns

A string with first line and following indented lines.