InternalImport#
Mypy_boto3_builder Index / Mypy Boto3 Builder / Type Annotations / InternalImport
Auto-generated documentation for mypy_boto3_builder.type_annotations.internal_import module.
InternalImport#
Show source in internal_import.py:14
Wrapper for simple type annotations from this module.
Arguments#
name
- Import name.service_name
- Service that import belongs to.module_name
- Service module name.stringify
- Convert type annotation to string to avoid circular deps.use_alias
- Use name alias.
Signature#
class InternalImport(FakeAnnotation):
def __init__(
self,
name: str,
service_name: ServiceName | None = None,
module_name: ServiceModuleName = ServiceModuleName.service_resource,
stringify: bool = True,
use_alias: bool = False,
) -> None: ...
See also#
InternalImport().copy#
Show source in internal_import.py:69
Create a copy of type annotation wrapper.
Signature#
InternalImport.get_alias#
Show source in internal_import.py:40
Get import name alias.
Arguments#
name
- Original name.
Returns#
Name prefixed with underscore.
Signature#
InternalImport().render#
Show source in internal_import.py:53
Render type annotation to a valid Python code for local usage.
Returns#
A string with a valid type annotation.