{"id":3577,"library":"mypy-boto3-entityresolution","title":"mypy-boto3-entityresolution Type Stubs for AWS Entity Resolution","description":"mypy-boto3-entityresolution provides type annotations for the `boto3` AWS Entity Resolution service, enabling static type checking with tools like MyPy. It is part of the `mypy-boto3-builder` project, which generates stubs for all `boto3` services. The library receives frequent updates, often daily or weekly, to keep pace with `boto3` and underlying AWS service changes.","status":"active","version":"1.42.10","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["aws","boto3","mypy","type-stubs","entityresolution","type-checking"],"install":[{"cmd":"pip install mypy-boto3-entityresolution boto3","lang":"bash","label":"Install with pip"}],"dependencies":[{"reason":"This library provides type stubs for the `boto3` AWS SDK. `boto3` itself must be installed to use the AWS services at runtime.","package":"boto3","optional":false}],"imports":[{"symbol":"EntityResolutionClient","correct":"from mypy_boto3_entityresolution.client import EntityResolutionClient"},{"symbol":"ListMatchingWorkflowsOutputTypeDef","correct":"from mypy_boto3_entityresolution.type_defs import ListMatchingWorkflowsOutputTypeDef"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_entityresolution.client import EntityResolutionClient\nfrom mypy_boto3_entityresolution.type_defs import ListMatchingWorkflowsOutputTypeDef\nimport os\n\ndef get_entity_resolution_workflows() -> list[ListMatchingWorkflowsOutputTypeDef]:\n    # Ensure AWS credentials are configured (e.g., via environment variables, ~/.aws/credentials)\n    # For local testing, you might need to mock or ensure a default region/profile\n    client: EntityResolutionClient = boto3.client(\"entityresolution\", region_name=os.environ.get('AWS_REGION', 'us-east-1'))\n\n    # Example: List matching workflows\n    response = client.list_matching_workflows(maxResults=10)\n    print(f\"Found {len(response['workflowSummaries'])} workflows.\")\n    # A mypy check would ensure 'workflowSummaries' exists and is correctly typed\n    return response['workflowSummaries']\n\nif __name__ == \"__main__\":\n    # This code requires AWS credentials and a configured default region to run successfully.\n    # Set AWS_REGION and AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY or use a configured profile.\n    # Example: export AWS_REGION=us-east-1\n    # Example: mypy your_script_name.py\n    try:\n        workflows = get_entity_resolution_workflows()\n        for workflow in workflows:\n            print(f\"- Workflow ARN: {workflow['workflowArn']}\")\n    except Exception as e:\n        print(f\"Error: {e}. Please ensure AWS credentials and region are configured.\")\n","lang":"python","description":"This quickstart demonstrates how to initialize an AWS Entity Resolution client with explicit type annotations and list matching workflows. It highlights how type stubs enhance code completion and static analysis for `boto3` interactions. Ensure you have `boto3` installed and AWS credentials configured for actual execution."},"warnings":[{"fix":"Upgrade your Python environment to version 3.9 or higher. (e.g., `python -m pip install --upgrade python` or use a newer Python interpreter).","message":"Support for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0 (and consequently in `mypy-boto3` packages). Users on Python 3.8 or older must upgrade to Python 3.9+.","severity":"breaking","affected_versions":">=8.12.0 of mypy-boto3-builder related packages"},{"fix":"Ensure your `mypy` setup is current and correctly configured to discover PEP 561 compliant stub packages. Typically, installing the package in the same environment as `mypy` should suffice.","message":"The `mypy-boto3` ecosystem migrated to PEP 561 packages in `mypy-boto3-builder` version 8.12.0. This standardizes how type checkers like MyPy discover stubs, but may require updates to `mypy` configurations or ensure correct `py.typed` file discovery.","severity":"breaking","affected_versions":">=8.12.0 of mypy-boto3-builder related packages"},{"fix":"Update imports and references to TypeDef names according to the new naming conventions. Refer to the specific service's documentation for exact new names.","message":"TypeDef names for method arguments and conflicting names were refactored in `mypy-boto3-builder` version 8.9.0. For example, `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`, and `Extra` postfixes moved to the end. This is a breaking change for code explicitly referencing these TypeDefs.","severity":"breaking","affected_versions":">=8.9.0 of mypy-boto3-builder related packages"},{"fix":"Always install `boto3` alongside `mypy-boto3-entityresolution` if you intend to run the code. `pip install mypy-boto3-entityresolution boto3` is the recommended approach.","message":"This package provides only type annotations. You must install `boto3` separately (e.g., `pip install boto3`) for your application to function at runtime. `mypy-boto3-entityresolution` is solely for static analysis.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Add type hints to your `boto3.client` assignments, such as `client: EntityResolutionClient = boto3.client(\"entityresolution\")`.","message":"For full type-checking benefits and reliable IDE auto-completion, explicitly annotate your `boto3.client` calls with the specific client type (e.g., `client: EntityResolutionClient = boto3.client(...)`). While some IDEs might infer types, explicit annotations are often more robust.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}