{"id":1568,"library":"mypy-boto3-appflow","title":"mypy-boto3-appflow","description":"mypy-boto3-appflow provides type annotations for the boto3 Appflow service, enhancing static analysis for Python applications using mypy. It's generated by the `mypy-boto3-builder` project, currently at version 1.42.3, and follows a rapid release cycle to keep pace with boto3 updates.","status":"active","version":"1.42.3","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["boto3","mypy","type-hints","aws","appflow","cloud"],"install":[{"cmd":"pip install mypy-boto3-appflow boto3","lang":"bash","label":"Install with boto3"}],"dependencies":[{"reason":"Provides the runtime AWS SDK that these type stubs complement. This package only adds type hints, not functionality.","package":"boto3","optional":false}],"imports":[{"symbol":"AppflowClient","correct":"from mypy_boto3_appflow.client import AppflowClient"},{"symbol":"ListFlowsResponseTypeDef","correct":"from mypy_boto3_appflow.type_defs import ListFlowsResponseTypeDef"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_appflow.client import AppflowClient\nfrom mypy_boto3_appflow.type_defs import ListFlowsResponseTypeDef\n\ndef get_appflow_flows() -> ListFlowsResponseTypeDef:\n    # mypy-boto3-appflow provides type hints for the boto3 client\n    client: AppflowClient = boto3.client('appflow')\n    response: ListFlowsResponseTypeDef = client.list_flows()\n    for flow in response.get('flows', []):\n        print(f\"Flow Name: {flow.get('flowName')}, ARN: {flow.get('flowArn')}\")\n    return response\n\nif __name__ == '__main__':\n    # This example requires AWS credentials configured (e.g., via ~/.aws/credentials\n    # or environment variables like AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY).\n    # It will attempt to list Appflow flows in the configured region.\n    try:\n        print(\"Listing Appflow flows...\")\n        get_appflow_flows()\n        print(\"Finished listing Appflow flows.\")\n    except Exception as e:\n        print(f\"An error occurred: {e}\")","lang":"python","description":"This quickstart demonstrates how to use `mypy-boto3-appflow` to add type hints to a `boto3` Appflow client. It initializes an Appflow client, calls `list_flows` with type-annotated variables, and prints flow details. Ensure `boto3` is also installed and AWS credentials are configured."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or newer if you are using recent versions of `mypy-boto3-appflow`.","message":"Support for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0 (which generates `mypy-boto3-appflow` versions 1.42.x onwards). Packages now require Python 3.9 or newer.","severity":"breaking","affected_versions":">=1.42.0"},{"fix":"Review your codebase for explicit TypeDef imports and adjust names according to the updated conventions. Common changes include shorter names for packed method arguments and `Extra` postfix moving to the end of the name.","message":"TypeDef naming conventions changed in `mypy-boto3-builder` version 8.9.0. This might affect code that explicitly imports or references TypeDefs with previously conflicting or redundant naming patterns (e.g., `CreateDistributionRequestRequestTypeDef` becoming `CreateDistributionRequestTypeDef`).","severity":"breaking","affected_versions":">=1.38.0 (corresponding to builder v8.9.0)"},{"fix":"Always install `boto3` alongside `mypy-boto3-appflow` (e.g., `pip install boto3 mypy-boto3-appflow`).","message":"This package (`mypy-boto3-appflow`) provides *only* type stubs for the Appflow service. It does not include the actual runtime `boto3` library. You must install `boto3` separately for your code to function.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-09T00:00:00.000Z","next_check":"2026-07-08T00:00:00.000Z"}