{"id":3603,"library":"mypy-boto3-kafkaconnect","title":"mypy-boto3-kafkaconnect","description":"mypy-boto3-kafkaconnect provides type annotations for the boto3 AWS KafkaConnect service, generated by mypy-boto3-builder. It aims to offer full type-hinting support for `boto3` clients, resources, and paginators. The current version is 1.42.47, and releases are frequent, typically in sync with `boto3` updates and `mypy-boto3-builder` enhancements.","status":"active","version":"1.42.47","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["boto3","aws","typing","mypy","kafkaconnect","type-hints"],"install":[{"cmd":"pip install mypy-boto3-kafkaconnect","lang":"bash","label":"Install service stubs"},{"cmd":"pip install boto3","lang":"bash","label":"Install boto3 (runtime dependency)"}],"dependencies":[{"reason":"Provides the underlying AWS SDK for Python that these stubs type-check.","package":"boto3"}],"imports":[{"wrong":"from mypy_boto3_kafkaconnect import KafkaConnectClient","symbol":"KafkaConnectClient","correct":"from mypy_boto3_kafkaconnect import KafkaConnectClient"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_kafkaconnect import KafkaConnectClient\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n    # This block is only for type checking, not for runtime\n    client: KafkaConnectClient = boto3.client(\"kafkaconnect\")\n    # Example method call with type hints\n    response = client.list_custom_plugins()\n    print(f\"Custom plugins: {response.get('customPlugins')}\")\nelse:\n    # Runtime code without specific type hints\n    client = boto3.client(\"kafkaconnect\")\n    response = client.list_custom_plugins()\n    print(f\"Custom plugins: {response.get('customPlugins')}\")\n\n# To verify the type hints with mypy:\n# 1. Save this code as 'app.py'\n# 2. Run: mypy app.py","lang":"python","description":"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')`."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or higher. For older Python versions, use an older `mypy-boto3-kafkaconnect` version.","message":"Support 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.","severity":"breaking","affected_versions":"mypy-boto3-builder 8.12.0+ (affecting mypy-boto3-kafkaconnect versions built with it)"},{"fix":"Ensure both `pip install boto3` and `pip install mypy-boto3-kafkaconnect` are executed in your environment.","message":"`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.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Review 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.","message":"Version 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.","severity":"breaking","affected_versions":"mypy-boto3-builder 8.9.0+ (affecting mypy-boto3-kafkaconnect versions built with it)"},{"fix":"Regularly update both `boto3` and `mypy-boto3-kafkaconnect` to their latest compatible versions. Use `pip install --upgrade boto3 mypy-boto3-kafkaconnect`.","message":"For 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.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"search_vec":"'1.42.47':43 'aim':25 'annot':11 'aw':15,61 'boto3':3,7,14,22,34,52,57,60 'builder':23,58 'client':35 'current':40 'enhanc':59 'frequent':47 'full':28 'generat':18 'hint':31,67 'kafkaconnect':4,8,16,64 'mypi':2,6,21,56,63 'mypy-boto3-builder':20,55 'mypy-boto3-kafkaconnect':1,5 'offer':27 'pagin':38 'provid':9 'releas':45 'resourc':36 'servic':17 'support':32 'sync':50 'type':10,30,62,66 'type-hint':29,65 'typic':48 'updat':53 'version':41","created_at":"2026-04-11T17:36:43.023700+00:00","updated_at":"2026-04-16T17:00:42.243011+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmpb2ago0ms/venv/lib/python3.12/site-packages/mypy_boto3_kafkaconnect/__init__.py\", line 31, in <module>\n    from .client import KafkaConnectClient\n  File \"/tmp/tmpb2ago0ms/venv/lib/python3.12/site-packages/mypy_b"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.43.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/youtype/mypy_boto3_builder","docs":"https://youtype.github.io/boto3_stubs_docs/mypy_boto3_kafkaconnect/","changelog":null,"pypi":"https://pypi.org/project/mypy-boto3-kafkaconnect/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs","aws"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-08-29","next_check":"2026-07-10","install_tag":null}}