Registry /
type-stubs / mypy-boto3-kafkaconnect
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.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.3MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 2.6s · import 0.000s · 19MB
71MB installed
● package 71MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
KafkaConnectClient
✓ from mypy_boto3_kafkaconnect import KafkaConnectClient
✗ from mypy_boto3_kafkaconnect import KafkaConnectClient
This example demonstrates how to use `mypy-boto3-kafkaconnect` to provide type hints for your `boto3` KafkaConnect client. The `TYPE_CHECKING` block is crucial for mypy to apply the custom types without affecting runtime behavior. You still instantiate the client using `boto3.client('kafkaconnect')`.
import boto3
from mypy_boto3_kafkaconnect import KafkaConnectClient
from typing import TYPE_CHECKING
if TYPE_CHECKING:
# This block is only for type checking, not for runtime
client: KafkaConnectClient = boto3.client("kafkaconnect")
# Example method call with type hints
response = client.list_custom_plugins()
print(f"Custom plugins: {response.get('customPlugins')}")
else:
# Runtime code without specific type hints
client = boto3.client("kafkaconnect")
response = client.list_custom_plugins()
print(f"Custom plugins: {response.get('customPlugins')}")
# To verify the type hints with mypy:
# 1. Save this code as 'app.py'
# 2. Run: mypy app.py
Debug
Known issues
breakingSupport for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0. If you are using `mypy-boto3-kafkaconnect` with Python 3.8, you must upgrade your Python version to 3.9 or newer.fixUpgrade your Python environment to 3.9 or higher. For older Python versions, use an older `mypy-boto3-kafkaconnect` version.
affects: mypy-boto3-builder 8.12.0+ (affecting mypy-boto3-kafkaconnect versions built with it)
gotcha`mypy-boto3-kafkaconnect` provides *type annotations* only. It is not a runtime replacement for `boto3`. You must install both `boto3` and the `mypy-boto3-kafkaconnect` package to use these type hints effectively.fixEnsure both `pip install boto3` and `pip install mypy-boto3-kafkaconnect` are executed in your environment.
affects: All versions
breakingVersion 8.9.0 of `mypy-boto3-builder` introduced breaking changes in TypeDef naming conventions (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`). This affects specific TypeDef names across all generated service packages.fixReview your code for any direct references to TypeDef names if you've updated from an older `mypy-boto3-builder` version's output and adjust names accordingly, or consult the generated stub files.
affects: mypy-boto3-builder 8.9.0+ (affecting mypy-boto3-kafkaconnect versions built with it)
gotchaFor optimal type checking, keep your `mypy-boto3-kafkaconnect` version in sync with your `boto3` version. Discrepancies can lead to incorrect type hints if the underlying `boto3` API changes without a corresponding update in the stubs.fixRegularly update both `boto3` and `mypy-boto3-kafkaconnect` to their latest compatible versions. Use `pip install --upgrade boto3 mypy-boto3-kafkaconnect`.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the underlying AWS SDK for Python that these stubs type-check.