Function#
Mypy_boto3_builder Index / Mypy Boto3 Builder / Structures / Function
Auto-generated documentation for mypy_boto3_builder.structures.function module.
Function#
Module-level function.
Signature#
class Function:
def __init__(
self,
name: str,
arguments: Iterable[Argument],
return_type: FakeAnnotation,
docstring: str = "",
decorators: Iterable[FakeAnnotation] = (),
body_lines: Iterable[str] = (),
type_ignore: bool = False,
is_async: bool = False,
): ...
See also#
Function().copy#
Show source in function.py:145
Deep copy function.
Signature#
Function().body#
Function body as a string.
Signature#
Function().copy#
Show source in function.py:139
Deep copy function.
Signature#
Function().create_request_type_annotation#
Create and set request_type_annotation
TypedDict based on function arguments.
Signature#
Function().get_required_import_records#
Show source in function.py:103
Extract required import records.
Signature#
See also#
Function().is_kw_only#
Show source in function.py:120
Whether method arguments can be passed only as kwargs.
Signature#
Function().iterate_types#
Iterate over required type annotations.
Signature#
See also#
Function().remove_argument#
Show source in function.py:160
Remove argument by name.
Signature#
Function().returns_none#
Show source in function.py:113
Whether return type is None.
Signature#
Function().short_docstring#
Docstring without documentation links.
Signature#
Function().type_hint_annotations#
Show source in function.py:126
Type annotations list from arguments and return type with internal types.