{"id":3660,"library":"mypy-boto3-partnercentral-account","title":"mypy-boto3-partnercentral-account Type Stubs","description":"This package provides type annotations for the `boto3` PartnerCentralAccountAPI service, generated by `mypy-boto3-builder`. It enables static type checking with tools like MyPy, Pyright, and enhances IDE auto-completion for `boto3` clients and resources. The `mypy-boto3` ecosystem receives frequent updates, typically aligning with new `boto3` and `botocore` releases.","status":"active","version":"1.42.79","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["boto3","aws","typing","stubs","type-checking","partnercentral-account","mypy","pyright"],"install":[{"cmd":"pip install mypy-boto3-partnercentral-account","lang":"bash","label":"Install package"}],"dependencies":[{"reason":"Runtime dependency for the actual AWS SDK. This package provides type stubs for it.","package":"boto3"},{"reason":"Requires Python 3.9 or higher.","package":"python","optional":false}],"imports":[{"symbol":"PartnerCentralAccountClient","correct":"from mypy_boto3_partnercentral_account.client import PartnerCentralAccountClient"},{"note":"Import specific TypedDicts as needed (e.g., `CreatePartnerRequestRequestTypeDef`).","symbol":"PartnerCentralAccountTypeDef","correct":"from mypy_boto3_partnercentral_account.type_defs import SomeTypeDef"},{"note":"Import specific literal types (e.g., `RegionName`) as needed.","symbol":"PartnerCentralAccountLiterals","correct":"from mypy_boto3_partnercentral_account.literals import SomeLiteral"}],"quickstart":{"code":"import boto3\nfrom typing import TYPE_CHECKING\nimport os\n\nif TYPE_CHECKING:\n    from mypy_boto3_partnercentral_account.client import PartnerCentralAccountClient\n    # Optionally import other types like paginators, waiters, or TypeDefs\n    # from mypy_boto3_partnercentral_account.type_defs import CreatePartnerRequestRequestTypeDef\n\ndef get_partnercentral_account_client() -> \"PartnerCentralAccountClient\":\n    \"\"\"Returns a type-hinted PartnerCentralAccount client.\"\"\"\n    # Ensure AWS credentials are set via environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)\n    # or other boto3 configuration methods.\n    return boto3.client(\n        \"partnercentral-account\",\n        region_name=os.environ.get(\"AWS_REGION\", \"us-east-1\")\n    )\n\nclient = get_partnercentral_account_client()\n\n# Example usage: Replace with an actual API call relevant to your use case.\n# get_alliance_lead_contact is used here as a simple example that doesn't require complex input.\ntry:\n    # This call might require specific permissions or existing resources in your AWS account.\n    response = client.get_alliance_lead_contact()\n    print(\"Successfully called get_alliance_lead_contact (example API call).\")\n    if response:\n        print(f\"Response keys: {list(response.keys())}\")\nexcept Exception as e:\n    print(f\"An error occurred: {e}\")\n    print(\"Ensure AWS credentials are configured and you have permissions for partnercentral-account:GetAllianceLeadContact.\")","lang":"python","description":"Demonstrates how to initialize a type-hinted `PartnerCentralAccountClient` and make a basic API call. This example uses `get_alliance_lead_contact`, which may require specific AWS permissions or an existing setup in AWS Partner Central."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or higher.","message":"Support for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0. All generated packages, including this one, now require Python 3.9 or newer.","severity":"breaking","affected_versions":">=8.12.0 (builder)"},{"fix":"Ensure your type checker (e.g., mypy, pyright) and IDE are updated to recent versions that fully support PEP 561 package layouts.","message":"The `mypy-boto3-builder` migrated to PEP 561 packages in version 8.12.0. This change might affect how type checkers or IDEs locate and use the stubs if you are using older or non-standard Python tooling configurations.","severity":"breaking","affected_versions":">=8.12.0 (builder)"},{"fix":"Review your explicit TypeDef imports and update their names according to the new conventions (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`).","message":"TypeDef naming conventions were changed in `mypy-boto3-builder` version 8.9.0. This could lead to `NameError` if you were explicitly importing and using TypeDefs in your code.","severity":"breaking","affected_versions":">=8.9.0 (builder)"},{"fix":"If PyCharm performance is an issue, install `boto3-stubs-lite` for the service (e.g., `pip install 'boto3-stubs-lite[partnercentral-account]'`) and provide more explicit type hints.","message":"For PyCharm users, there can be performance issues related to `Literal` overloads in `mypy-boto3` packages. If you experience slowdowns, consider using the `boto3-stubs-lite` version which offers a more RAM-friendly experience at the cost of requiring more explicit type annotations.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}