{"id":3662,"library":"mypy-boto3-partnercentral-channel","title":"mypy-boto3-partnercentral-channel type stubs","description":"mypy-boto3-partnercentral-channel provides type annotations for the boto3 PartnerCentralChannel API, allowing for static type checking of your AWS client interactions. It is a generated package, part of the wider `mypy-boto3` ecosystem, and its version typically aligns with the `boto3` version it provides stubs for. The `mypy-boto3-builder` project maintains a frequent release cadence, often daily or weekly, to keep up with `boto3` updates and add new features/fixes to the type stubs.","status":"active","version":"1.42.60","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["mypy","boto3","aws","type-hints","stubs","partnercentral-channel"],"install":[{"cmd":"pip install mypy-boto3-partnercentral-channel boto3","lang":"bash","label":"Install with boto3"}],"dependencies":[{"reason":"Provides the underlying AWS SDK runtime for which these are type stubs.","package":"boto3","optional":false},{"reason":"May be required for full compatibility with older Python versions (<3.10) for advanced type features.","package":"typing-extensions","optional":true}],"imports":[{"symbol":"PartnerCentralChannelClient","correct":"from mypy_boto3_partnercentral_channel.client import PartnerCentralChannelClient"},{"note":"Common alias for convenience","symbol":"Client","correct":"from mypy_boto3_partnercentral_channel.client import PartnerCentralChannelClient as Client"},{"note":"Example of a common response type definition.","symbol":"ListChannelsResponseTypeDef","correct":"from mypy_boto3_partnercentral_channel.type_defs import ListChannelsResponseTypeDef"}],"quickstart":{"code":"import boto3\nimport os\nfrom mypy_boto3_partnercentral_channel.client import PartnerCentralChannelClient\nfrom mypy_boto3_partnercentral_channel.type_defs import ListChannelsResponseTypeDef\n\n# Create a boto3 client with type hints\n# AWS credentials are typically managed by environment variables, shared credential file, or IAM roles.\n# For explicit region, use os.environ.get.\nregion = os.environ.get('AWS_REGION', 'us-east-1')\nsession = boto3.Session(region_name=region)\n\n# The client variable is type-hinted for autocompletion and static analysis\nclient: PartnerCentralChannelClient = session.client(\"partnercentral-channel\")\n\ntry:\n    # Use the client with type-hinted response\n    response: ListChannelsResponseTypeDef = client.list_channels()\n    print(f\"Successfully listed channels in {region}:\")\n    for channel in response.get(\"Channels\", []):\n        print(f\"  - ID: {channel['ChannelId']}, Name: {channel['ChannelName']}\")\nexcept Exception as e:\n    print(f\"Error listing Partner Central channels: {e}\")","lang":"python","description":"This quickstart demonstrates how to initialize a `boto3` client with `mypy-boto3-partnercentral-channel` type annotations for improved development experience. It shows a basic API call (`list_channels`) with a type-hinted response, enabling IDE autocompletion and MyPy checks."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or newer.","message":"Python 3.8 support has been dropped for packages generated by `mypy-boto3-builder` version 8.12.0 and later. If you are using `mypy-boto3-partnercentral-channel` version 1.42.60 or newer, you must use Python 3.9 or higher.","severity":"breaking","affected_versions":"mypy-boto3-partnercentral-channel >=1.42.60 (corresponding to mypy-boto3-builder >=8.12.0)"},{"fix":"Review your imports and usage of `TypeDef` objects; consult the official `mypy-boto3-builder` documentation for the new naming patterns or rely on IDE autocompletion.","message":"TypeDef naming conventions changed in `mypy-boto3-builder` version 8.9.0. Specifically, argument TypeDefs were shortened, and 'Extra' postfixes were moved. This might cause import errors or incorrect type references if your code explicitly imports specific TypeDefs from `mypy_boto3_partnercentral_channel.type_defs`.","severity":"breaking","affected_versions":"mypy-boto3-partnercentral-channel >=1.42.0 (corresponding to mypy-boto3-builder >=8.9.0)"},{"fix":"Ensure `boto3` is installed in your environment (`pip install boto3`).","message":"These packages provide type stubs only. They do not contain any runtime code and must be used alongside the actual `boto3` library. Installing `mypy-boto3-partnercentral-channel` without `boto3` will result in runtime errors.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Ensure your type checker (e.g., MyPy) is up-to-date. If issues persist, verify your `pyproject.toml` or MyPy configuration for package discovery.","message":"The `mypy-boto3` ecosystem migrated to PEP 561-compliant packages. While this generally improves compatibility with type checkers, in rare cases with older MyPy versions or unusual project setups, you might need to ensure your type checker correctly discovers these stubs.","severity":"gotcha","affected_versions":"All versions generated by mypy-boto3-builder >=8.12.0"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}