Strings
Auto-generated documentation for builder.mypy_boto3_builder.utils.strings module.
Multiple string utils collection.
- mypy-boto3 / Modules /
Builder
/ Mypy Boto3 Builder / Utils / Strings
get_class_prefix
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
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.