{"id":3703,"library":"mypy-boto3-snow-device-management","title":"mypy-boto3-snow-device-management","description":"This library provides type annotations (stubs) for the `boto3` AWS Snow Device Management service, generated by `mypy-boto3-builder`. It enhances type checking for `boto3` code with tools like `mypy`, preventing common runtime errors related to incorrect AWS API calls. The current version is 1.42.3, with releases closely following `boto3` updates and the `mypy-boto3-builder`'s frequent development cycle.","status":"active","version":"1.42.3","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["AWS","boto3","mypy","type hints","stubs","cloud","type checking"],"install":[{"cmd":"pip install mypy-boto3-snow-device-management boto3 mypy","lang":"bash","label":"Install with boto3 and mypy"}],"dependencies":[{"reason":"Provides the runtime functionality; this package only provides type stubs.","package":"boto3","optional":false},{"reason":"The static type checker that utilizes these stubs.","package":"mypy","optional":true}],"imports":[{"note":"Imports the type for the AWS SnowDeviceManagement client object.","symbol":"SnowDeviceManagementClient","correct":"from mypy_boto3_snow_device_management.client import SnowDeviceManagementClient"},{"note":"Imports a common TypeDef for response objects, useful for explicit type hinting.","symbol":"DescribeDeviceOutputTypeDef","correct":"from mypy_boto3_snow_device_management.type_defs import DescribeDeviceOutputTypeDef"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_snow_device_management.client import SnowDeviceManagementClient\nfrom mypy_boto3_snow_device_management.type_defs import DescribeDeviceOutputTypeDef\nimport os\n\n# Create a boto3 client (runtime object)\n# Mypy will now correctly type-check operations on 'client'\nclient: SnowDeviceManagementClient = boto3.client(\"snow-device-management\")\n\n# Example usage with type hints\ndevice_id = os.environ.get('AWS_SNOW_DEVICE_ID', 'your-device-id-placeholder')\n\nif device_id == 'your-device-id-placeholder':\n    print(\"Please set the AWS_SNOW_DEVICE_ID environment variable for a real test.\")\n    print(\"Using a placeholder, type checking will still work.\")\n\ntry:\n    response: DescribeDeviceOutputTypeDef = client.describe_device(deviceId=device_id)\n    print(f\"Device ARN: {response.get('deviceArn')}\")\n    print(f\"Device type: {response.get('deviceType')}\")\n    # Mypy would warn if 'deviceArn' was not a valid key in DescribeDeviceOutputTypeDef\nexcept client.exceptions.ResourceNotFoundException:\n    print(f\"Device with ID '{device_id}' not found.\")\nexcept Exception as e:\n    print(f\"An error occurred: {e}\")","lang":"python","description":"This example demonstrates how to initialize a `boto3` client and use the `mypy-boto3-snow-device-management` type stubs to add type annotations. This allows `mypy` to verify method calls and response structures at static analysis time, catching potential errors before runtime. Remember to replace 'your-device-id-placeholder' with an actual device ID or set the `AWS_SNOW_DEVICE_ID` environment variable for a successful API call."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or newer before installing or using affected `mypy-boto3-*` packages.","message":"Starting with `mypy-boto3-builder` version 8.12.0 (and thus packages built with it), Python 3.8 is no longer supported. All generated `mypy-boto3-*` packages will now require Python 3.9 or higher.","severity":"breaking","affected_versions":">=8.12.0"},{"fix":"Review your explicit `from mypy_boto3_SERVICE.type_defs import ...` statements and adjust TypeDef names according to the new conventions.","message":"As of `mypy-boto3-builder` version 8.9.0, there were changes to TypeDef naming conventions. Specifically, some generated type definition names were shortened (e.g., `*RequestRequestTypeDef` became `*RequestTypeDef`). If you directly imported specific TypeDefs, you may need to update their names.","severity":"breaking","affected_versions":">=8.9.0"},{"fix":"Ensure `boto3` is installed (`pip install boto3`) and that you run a static type checker (e.g., `mypy your_script.py`) as part of your development workflow.","message":"This package provides *only* type annotations for `boto3`. It does not include any runtime functionality itself. You must have `boto3` installed separately for your code to execute, and a type checker like `mypy` to leverage the benefits of these stubs.","severity":"gotcha","affected_versions":"all"},{"fix":"Keep `mypy-boto3-snow-device-management` and `boto3` synchronized to avoid type mismatches. Consult `mypy-boto3-builder` release notes for broader ecosystem changes.","message":"The versions of service-specific `mypy-boto3-*` packages are tied to the `boto3` version they stub and the `mypy-boto3-builder`'s release cycle. Breaking changes or new features in the underlying `boto3` or `mypy-boto3-builder` can impact these stub packages, sometimes leading to more frequent updates or specific version requirements.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}