Strings

Auto-generated documentation for 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

  • func_name - Any string.

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

  • input_string - Input string.

Returns

A string with first line and following indented lines.