Registry / type-stubs / mypy-boto3-qbusiness

mypy-boto3-qbusiness

JSON →
library1.43.0pypypi✓ verified 22d ago

mypy-boto3-qbusiness provides type annotations for the `boto3` QBusiness service, generated by `mypy-boto3-builder`. It enhances code quality, readability, and error detection by enabling static type checking for `boto3` interactions with AWS QBusiness. The library is actively maintained with frequent updates to match `boto3` versions and `mypy-boto3-builder` releases, currently at version 1.42.14.

pip install mypy-boto3-qbusiness boto3
INSTALL
IMPORT
SIG · MYPY-BOTO3-QBUSINE
M
mypy-boto3-qbusiness
type-stubspythonv1.43.0
Install
3.8s avg
Import
690ms
Disk
51MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.43.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.698s · 52.4MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 3.8s · import 0.682s · 53MB
51MB installed
● package 51MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

QBusinessClient
from mypy_boto3_qbusiness.client import QBusinessClient
Imports the type for the QBusiness client.
ListApplicationsOutputTypeDef
from mypy_boto3_qbusiness.type_defs import ListApplicationsOutputTypeDef
Imports a specific TypedDict for a QBusiness API response structure. The exact TypeDef name will vary by API call.

This quickstart demonstrates how to use `mypy-boto3-qbusiness` to type-hint a `boto3` QBusiness client. It shows the import of the `QBusinessClient` type and its application to the `boto3.client` call, enabling static analysis tools like MyPy and IDEs to provide accurate auto-completion and type checking. While some IDEs (like PyCharm) and MyPy can infer types, explicit annotation with `TYPE_CHECKING` is generally recommended for broader compatibility, especially with tools like VSCode.

import boto3 from mypy_boto3_qbusiness.client import QBusinessClient from typing import TYPE_CHECKING # In a real application, you would configure AWS credentials. # For a runnable example, we'll assume default config or environment variables. # client: QBusinessClient = boto3.client('qbusiness') # Implicit typing for PyCharm / mypy if TYPE_CHECKING: client: QBusinessClient = boto3.client('qbusiness') else: client = boto3.client('qbusiness') # Example: Listing QBusiness applications # The return type can also be explicitly hinted if needed response = client.list_applications() print(f"QBusiness Applications: {response.get('applications', [])}") # To run mypy, save this as a .py file and run `mypy your_file.py`
Debug
Known issues
breakingSupport for Python 3.8 has been removed in `mypy-boto3-builder` version 8.12.0, which generates `mypy-boto3-qbusiness`. Projects relying on Python 3.8 will no longer receive updated type stubs.
fix
Upgrade your Python environment to 3.9 or higher. The `requires_python` metadata is `>=3.9`.
affects: mypy-boto3-builder >= 8.12.0
breakingAs of `mypy-boto3-builder` version 8.9.0, there were breaking changes to TypeDef naming conventions. For example, `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`. If upgrading from significantly older versions, review TypeDef usages.
fix
Update TypeDef import paths and names according to the latest generated stubs. Refer to the specific service's documentation or the `mypy-boto3-builder` release notes for details.
affects: mypy-boto3-builder >= 8.9.0
gotchaThis package provides *type annotations* for `boto3`, not the `boto3` library itself. You must install `boto3` separately for your code to run.
fix
Ensure `boto3` is installed in your environment: `pip install boto3`.
affects: All
gotchaWhile `mypy-boto3` can offer auto-discovery for types, explicit type annotations for `boto3.client()` calls are often recommended, especially for VSCode users, to ensure optimal auto-completion and static checking.
fix
Use explicit type hints, often guarded by `if TYPE_CHECKING:` to avoid runtime import issues, as shown in the quickstart.
affects: All
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the AWS SDK for Python, which these type stubs annotate.
mypyoptionalA static type checker that uses these annotations.
Agent activity
21 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
mypy-boto3-qbusiness — pip install mypy-boto3-qbusiness · libregistry