{"id":24760,"library":"types-aiobotocore-timestream-query","title":"types-aiobotocore-timestream-query","description":"Type annotations for aiobotocore TimestreamQuery 3.5.0 service generated with mypy-boto3-builder 8.12.0. Provides static type checking and autocomplete for AWS Timestream Query operations when using aiobotocore. Supports Python 3.9+.","status":"active","version":"3.5.0","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["type-annotations","aws","aiobotocore","timestream-query","mypy"],"install":[{"cmd":"pip install types-aiobotocore[timestream-query]","lang":"bash","label":"Install via extras (recommended)"},{"cmd":"pip install types-aiobotocore-timestream-query","lang":"bash","label":"Install standalone package"}],"dependencies":[{"reason":"Required for type hints not available in older Python versions","package":"typing-extensions","optional":false}],"imports":[{"note":"Correct import for the service client class","symbol":"TimestreamQueryClient","correct":"from types_aiobotocore_timestream_query.client import TimestreamQueryClient"},{"note":"Correct import for the service model","symbol":"TimestreamQueryServiceModel","correct":"from types_aiobotocore_timestream_query.service_model import TimestreamQueryServiceModel"},{"note":"Correct import for paginator class","symbol":"GetQueryResultsPaginator","correct":"from types_aiobotocore_timestream_query.paginator import GetQueryResultsPaginator"}],"quickstart":{"code":"import asyncio\nfrom types_aiobotocore_timestream_query import TimestreamQueryClient\nfrom aiobotocore.session import get_session\n\nasync def main():\n    session = get_session()\n    async with session.create_client('timestream-query', region_name='us-east-1') as client:\n        # client is of type TimestreamQueryClient\n        response = await client.query(QueryString='SELECT 1')\n        print(response)\n\nasyncio.run(main())","lang":"python","description":"Basic usage with async context manager and type hints."},"warnings":[{"fix":"Upgrade Python to 3.9+ or pin to earlier version (e.g., types-aiobotocore-timestream-query<8.12.0).","message":"Version 8.12.0 dropped Python 3.8 support. Ensure your environment uses Python >= 3.9.","severity":"breaking","affected_versions":">=8.12.0"},{"fix":"Update any hardcoded type name strings to match new shorter names.","message":"Version 8.9.0 shortened TypeDef names (e.g., removed duplicate 'Request' suffix). If you reference type definitions by name, they may have changed.","severity":"breaking","affected_versions":">=8.9.0,<8.12.0"},{"fix":"Install aiobotocore: pip install aiobotocore","message":"The package provides type hints only; it does not include the aiobotocore runtime. You must also install aiobotocore and botocore.","severity":"gotcha","affected_versions":"all"},{"fix":"If you only need timestream-query, use the standalone package to reduce installation size.","message":"Using pip install types-aiobotocore[timestream-query] installs type annotations for all aiobotocore services plus the timestream-query types. The standalone package installs only timestream-query types.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use: from types_aiobotocore_timestream_query.client import TimestreamQueryClient","cause":"Incorrect import path: trying to import directly from the package root instead of nested modules.","error":"Cannot find reference 'TimestreamQueryClient' in 'types_aiobotocore_timestream_query.pyi'"},{"fix":"Install via pip install types-aiobotocore[timestream-query] or pip install types-aiobotocore-timestream-query","cause":"Package not installed, or installed under a different name.","error":"ModuleNotFoundError: No module named 'types_aiobotocore_timestream_query'"},{"fix":"Use: from aiobotocore.session import get_session; session = get_session()","cause":"Using get_session incorrectly; get_session returns a session object, not creates one.","error":"TypeError: 'AioSession' object is not callable"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}