{"id":24756,"library":"types-aiobotocore-organizations","title":"types-aiobotocore-organizations","description":"Type annotations for aiobotocore Organizations 3.5.0 service, generated by mypy-boto3-builder. Provides static type checking support for AWS Organizations operations. Version 3.5.0, released March 2025.","status":"active","version":"3.5.0","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["type-annotations","aws","organizations","aiobotocore","mypy","stubs"],"install":[{"cmd":"pip install types-aiobotocore-organizations","lang":"bash","label":"pip install"}],"dependencies":[{"reason":"Runtime dependency for AWS SDK async client; types are only valid with matching version.","package":"aiobotocore","optional":false}],"imports":[{"note":"The correct usage is with aiobotocore's generic client type; do not import the 'types' package directly.","wrong":"from mypy_boto3_organizations import OrganizationsClient","symbol":"OrganizationsClient","correct":"from aiobotocore.client import AIOBotocoreClient; type Client = AIOBotocoreClient['organizations']"}],"quickstart":{"code":"import asyncio\nfrom aiobotocore.session import AioSession\n\nasync def main():\n    session = AioSession()\n    async with session.create_client('organizations', region_name='us-east-1') as client:\n        # Use client with full type hints\n        response = await client.list_accounts()\n        print(response)\n\nasyncio.run(main())","lang":"python","description":"Use types-aiobotocore-organizations with aiobotocore. The package provides type stubs; no additional import needed."},"warnings":[{"fix":"Check your aiobotocore version and install the matching types package.","message":"types-aiobotocore-* packages are version-locked to a specific aiobotocore version. Ensure aiobotocore version matches the types package version exactly (e.g., types-aiobotocore-organizations 3.5.0 requires aiobotocore ~=3.5.0).","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade Python to 3.9+ or pin to an older types package version.","message":"The base builder (mypy-boto3-builder) has dropped Python 3.8 support since v8.12.0. Packages generated after that date require Python >=3.9.","severity":"deprecated","affected_versions":">=8.12.0 (builder), types packages generated after 2025-03-20"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Do not import types_aiobotocore_organizations directly. The types are automatically used by type checkers when the package is installed. Just install it and use aiobotocore normally.","cause":"Package name uses hyphens, but import uses underscores; users often try to import the types package directly instead of relying on aiobotocore's type stubs.","error":"ModuleNotFoundError: No module named 'types_aiobotocore_organizations'"},{"fix":"Use from aiobotocore.client import AIOBotocoreClient; type Client = AIOBotocoreClient['organizations']","cause":"The correct type alias for the client is via aiobotocore's generic client, not a specific class from the types package.","error":"Cannot find reference 'OrganizationsClient' in '__init__.py'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}