{"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":"python","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":[{"wrong":"from mypy_boto3_partnercentral_account import PartnerCentralAccountClient","symbol":"PartnerCentralAccountClient","correct":"from mypy_boto3_partnercentral_account import PartnerCentralAccountClient"}],"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,"search_vec":"'account':5,70 'align':54 'annot':12 'auto':38 'auto-complet':37 'aw':62 'boto3':3,15,22,41,48,57,61 'botocor':59 'builder':23 'check':28,67 'client':42 'complet':39 'ecosystem':49 'enabl':25 'enhanc':35 'frequent':51 'generat':18 'ide':36 'like':31 'mypi':2,21,32,47,71 'mypy-boto3':46 'mypy-boto3-builder':20 'mypy-boto3-partnercentral-account':1 'new':56 'packag':9 'partnercentr':4,69 'partnercentral-account':68 'partnercentralaccountapi':16 'provid':10 'pyright':33,72 'receiv':50 'releas':60 'resourc':44 'servic':17 'static':26 'stub':7,64 'tool':30 'type':6,11,27,63,66 'type-check':65 'typic':53 'updat':52","created_at":"2026-04-11T17:39:15.155587+00:00","updated_at":"2026-04-16T17:07:27.233026+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmp2lb_6hdm/venv/lib/python3.12/site-packages/mypy_boto3_partnercentral_account/__init__.py\", line 29, in <module>\n    from .client import PartnerCentralAccountAPIClient\n  File \"/tmp/tmp2lb_6hdm/venv/lib/python3.1"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.43.57","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_partnercentral_account/","changelog":null,"pypi":"https://pypi.org/project/mypy-boto3-partnercentral-account/","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}}