{"id":3172,"library":"mypy-boto3-workspaces-thin-client","title":"mypy-boto3-workspaces-thin-client","description":"Type annotations for the `boto3` WorkSpaces Thin Client, version 1.42.3. This library provides static type checking for your `boto3` code, enhancing developer experience by catching type-related errors before runtime. It is generated by the `mypy-boto3-builder` project, which releases frequently, often in sync with `boto3` and `botocore` updates.","status":"active","version":"1.42.3","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["mypy","boto3","aws","type-hints","stubs","workspaces","workspaces-thin-client","typing"],"install":[{"cmd":"pip install mypy-boto3-workspaces-thin-client boto3 mypy","lang":"bash","label":"Install with dependencies"}],"dependencies":[{"reason":"Provides the runtime AWS SDK that these stubs type-check.","package":"boto3"},{"reason":"The primary static type checker designed to consume these stubs.","package":"mypy","optional":true}],"imports":[{"symbol":"WorkSpacesThinClientClient","correct":"from mypy_boto3_workspaces_thin_client.client import WorkSpacesThinClientClient"},{"note":"Type definitions are typically imported from the 'type_defs' submodule.","symbol":"ListWorkspacesThinClientDevicesRequestRequestTypeDef","correct":"from mypy_boto3_workspaces_thin_client.type_defs import ListWorkspacesThinClientDevicesRequestRequestTypeDef"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_workspaces_thin_client.client import WorkSpacesThinClientClient\nfrom mypy_boto3_workspaces_thin_client.type_defs import ListWorkspacesThinClientDevicesRequestRequestTypeDef\n\n\ndef list_thin_client_devices(\n    region_name: str,\n    max_results: int = 10,\n    next_token: str | None = None\n) -> None:\n    \"\"\"Lists WorkSpaces Thin Client devices with type hints.\"\"\"\n    # boto3.client returns a WorkSpacesThinClientClient when mypy-boto3-workspaces-thin-client is installed\n    client: WorkSpacesThinClientClient = boto3.client(\"workspaces-thin-client\", region_name=region_name)\n\n    request_params: ListWorkspacesThinClientDevicesRequestRequestTypeDef = {\n        \"maxResults\": max_results,\n    }\n    if next_token:\n        request_params[\"nextToken\"] = next_token\n\n    print(f\"Listing devices in {region_name}...\")\n    response = client.list_workspaces_thin_client_devices(**request_params)\n\n    devices = response.get(\"devices\", [])\n    if devices:\n        for device in devices:\n            print(f\"  Device ID: {device.get('id')}, Name: {device.get('name', 'N/A')}\")\n    else:\n        print(\"  No devices found.\")\n    \n    if \"nextToken\" in response:\n        print(f\"  Next Token: {response['nextToken']}\")\n\n\n# Example usage (requires AWS credentials configured, e.g., via AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY or ~/.aws/credentials)\nif __name__ == \"__main__\":\n    # Replace 'us-east-1' with your desired AWS region\n    list_thin_client_devices(\"us-east-1\")\n","lang":"python","description":"This example demonstrates how to initialize a `WorkSpacesThinClientClient` with `boto3` and use type-hinted request parameters and client methods provided by `mypy-boto3-workspaces-thin-client`."},"warnings":[{"fix":"Upgrade to Python 3.9+ or pin `mypy-boto3-workspaces-thin-client` to a compatible older version (e.g., <1.42.0).","message":"Python 3.8 support has been removed. As of `mypy-boto3-builder` version 8.12.0 (which generated `mypy-boto3-workspaces-thin-client` 1.42.3), projects targeting Python 3.8 or older will need to use an earlier version of `mypy-boto3` or upgrade their Python environment.","severity":"breaking","affected_versions":">=1.42.0 (generated by mypy-boto3-builder 8.12.0 and later)"},{"fix":"Ensure your Python environment and type checker (like `mypy`) are up-to-date and correctly configured for PEP 561 compliant stub packages. If issues persist, refer to the `mypy-boto3-builder` documentation for troubleshooting.","message":"`mypy-boto3` packages migrated to PEP 561 (namespace packages) with `mypy-boto3-builder` 8.12.0. This change in packaging structure might affect how some tools or environments discover these stubs, particularly in older or non-standard Python setups.","severity":"breaking","affected_versions":">=1.42.0 (generated by mypy-boto3-builder 8.12.0 and later)"},{"fix":"Always install `boto3` alongside `mypy-boto3-workspaces-thin-client` in your project's runtime environment.","message":"This package provides *only* type stubs. For your Python code to run and interact with AWS WorkSpaces Thin Client, you must also have the `boto3` library installed (`pip install boto3`).","severity":"gotcha","affected_versions":"All"},{"fix":"Install `mypy` (`pip install mypy`) and integrate it into your development workflow or CI/CD pipeline.","message":"To effectively use these type stubs, you need a static type checker like `mypy`. Ensure `mypy` is installed and configured to run on your project, allowing it to discover and utilize the type hints provided by this package.","severity":"gotcha","affected_versions":"All"},{"fix":"Update your import statements and type annotations to reflect the new `TypeDef` naming conventions. Consult the `mypy-boto3` documentation for the specific service to find the updated names.","message":"In `mypy-boto3-builder` 8.9.0, type definition names for packed method arguments were shortened (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`), and conflicting `Extra` postfixes were moved (e.g., `CreateDistributionExtraRequestTypeDef` -> `CreateDistributionRequestExtraTypeDef`). Code directly referencing these old type definition names will break.","severity":"breaking","affected_versions":">=1.39.0 (generated by mypy-boto3-builder 8.9.0 and later)"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}