Registry /
type-stubs / mypy-boto3-networkmanager
Install & Compatibility
Where this runs
tested against v1.43.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.682s · 52.4MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.9s · import 0.628s · 53MB
51MB installed
● package 51MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
NetworkManagerClient
✓ from mypy_boto3_networkmanager.client import NetworkManagerClient
ServiceName
✓ from mypy_boto3_networkmanager.literals import ServiceName
Useful for stricter typing of client creation, e.g., boto3.client(service_name: ServiceName)
Demonstrates how to import and use the `NetworkManagerClient` type hint with a standard `boto3` client. This allows MyPy to validate method calls and arguments, ensuring type safety for your AWS interactions.
import boto3
from mypy_boto3_networkmanager import NetworkManagerClient
def list_all_core_networks() -> None:
# Initialize the client with type hinting
client: NetworkManagerClient = boto3.client("networkmanager")
print("Listing Core Networks...")
try:
response = client.list_core_networks()
core_networks = response.get("CoreNetworks", [])
if core_networks:
for cn in core_networks:
print(f" - {cn.get('CoreNetworkId')} ({cn.get('State')})")
else:
print(" No Core Networks found.")
except Exception as e:
print(f"An error occurred: {e}")
if __name__ == "__main__":
list_all_core_networks()
Debug
Known issues
breaking`mypy-boto3` packages (including `mypy-boto3-networkmanager`) no longer support Python 3.8 as of `mypy-boto3-builder` version 8.12.0. The minimum required Python version is now 3.9.fixUpgrade your Python environment to 3.9 or higher, or pin `mypy-boto3-networkmanager` to an older version compatible with Python 3.8 if necessary.
affects: mypy-boto3-builder >= 8.12.0
breakingType definition naming conventions changed in `mypy-boto3-builder` version 8.9.0. This primarily affects `TypeDef` names which may have become shorter (e.g., `RequestRequestTypeDef` to `RequestTypeDef`) or had postfixes moved (e.g., `ExtraRequestTypeDef` to `RequestExtraTypeDef`).fixUpdate your code to reflect the new `TypeDef` names. Consult the specific service's `type_defs.pyi` for the correct names if you're importing them directly.
affects: mypy-boto3-builder >= 8.9.0
gotchaThis package provides only type stubs. `boto3` must be installed separately in your project for the code to run at runtime. `mypy-boto3-networkmanager` does not automatically install `boto3`.fixEnsure `boto3` is included in your project's dependencies (e.g., `pip install boto3` or `requirements.txt`).
affects: All versions
gotchaFor optimal type checking, the version of `mypy-boto3-networkmanager` should closely match your installed `boto3` version. Mismatched versions can lead to incorrect type hints or missed type errors.fixAlign your `mypy-boto3-networkmanager` version with your `boto3` version. `mypy-boto3` package versions are typically tied to the `boto3` version they provide stubs for (e.g., `mypy-boto3-networkmanager==1.42.3` for `boto3==1.42.3`).
affects: All versions
gotchaMigration to PEP 561 packages in `mypy-boto3-builder` version 8.12.0 means packages are now installed in an editable mode by default if using modern pip. While this generally improves discovery, it might interact unexpectedly with specific build systems or older environments.fixEnsure your `pip` version is up-to-date. If encountering issues with type checker discovery, verify the package installation method (e.g., `pip install --no-deps` or `pip install --no-build-isolation` if applicable in your CI/CD setup).
affects: mypy-boto3-builder >= 8.12.0
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the runtime functionality; `mypy-boto3-networkmanager` contains only type stubs.