ImportRecord#
Mypy_boto3_builder Index / Mypy Boto3 Builder / Import Helpers / ImportRecord
Auto-generated documentation for mypy_boto3_builder.import_helpers.import_record module.
ImportRecord#
Show source in import_record.py:18
Helper for Python import strings.
Arguments#
source
- Source of import.name
- Import name.alias
- Import local name.min_version
- Minimum Python version, used for fallback.fallback
- Fallback ImportRecord.
Signature#
class ImportRecord:
def __init__(
self: _R,
source: ImportString,
name: str = "",
alias: str = "",
min_version: tuple[int, ...] | None = None,
fallback: _R | None = None,
) -> None: ...
See also#
ImportRecord.empty#
Show source in import_record.py:59
Whether import record is an empty string.
Signature#
ImportRecord().get_local_name#
Show source in import_record.py:117
Get local import name.
Signature#
ImportRecord().is_builtins#
Show source in import_record.py:123
Whether import is from Python builtins
module.
Signature#
ImportRecord().is_empty#
Show source in import_record.py:53
Whether import record is an empty string.
Signature#
ImportRecord().is_local#
Show source in import_record.py:144
Whether import is from local module.
Signature#
ImportRecord().is_third_party#
Show source in import_record.py:135
Whether import is from 3rd party module.
Signature#
ImportRecord().is_type_defs#
Show source in import_record.py:129
Whether import is from type_defs
module.
Signature#
ImportRecord().needs_sys_fallback#
Show source in import_record.py:162
Whether ImportString requires sys
module.
Signature#
ImportRecord().render#
Show source in import_record.py:66
Get rendered string.