{"id":3089,"library":"mypy-boto3-fis","title":"mypy-boto3-fis","description":"mypy-boto3-fis provides comprehensive type annotations for the AWS FIS (Fault Injection Service) client in boto3. It is part of the `boto3-stubs` ecosystem, actively generated and maintained by `mypy-boto3-builder` (version 8.12.0), with frequent releases that align with boto3 updates to ensure up-to-date type checking capabilities for Python >=3.9.","status":"active","version":"1.42.3","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["aws","boto3","mypy","type-hints","stubs","fis","static-analysis","cloud"],"install":[{"cmd":"pip install mypy-boto3-fis","lang":"bash","label":"Install service-specific stubs"},{"cmd":"pip install 'boto3-stubs[fis]'","lang":"bash","label":"Install via boto3-stubs extras"}],"dependencies":[{"reason":"Provides the AWS SDK for Python that these stubs type-check.","package":"boto3"},{"reason":"The static type checker that utilizes these annotations; not a runtime dependency of the stubs themselves.","package":"mypy","optional":true}],"imports":[{"wrong":"from mypy_boto3_fis import FISClient","symbol":"FISClient","correct":"from mypy_boto3_fis import FISClient"},{"wrong":"from mypy_boto3_fis import FISClient","symbol":"Client","correct":"from mypy_boto3_fis import Client"},{"wrong":"from mypy_boto3_fis import FISClient","symbol":"FISServiceResource","correct":"from mypy_boto3_fis import FISServiceResource"}],"quickstart":{"code":"import boto3\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n    from mypy_boto3_fis import FISClient\n    from mypy_boto3_fis.type_defs import ListExperimentsOutputTypeDef\n\n    # Example of a TypedDict for a specific request parameter\n    from mypy_boto3_fis.type_defs import ExperimentTemplateSummaryTypeDef\n\ndef list_fis_experiments() -> list['ExperimentTemplateSummaryTypeDef']:\n    client: FISClient = boto3.client('fis')\n    response: ListExperimentsOutputTypeDef = client.list_experiments()\n    return response.get('experimentSummaries', [])\n\n# Example usage (will not be type-checked at runtime by mypy-boto3-fis)\nif __name__ == \"__main__\":\n    try:\n        experiments = list_fis_experiments()\n        print(f\"Found {len(experiments)} FIS experiments.\")\n        for experiment in experiments:\n            print(f\" - {experiment.get('id')}: {experiment.get('state', {}).get('status')}\")\n    except Exception as e:\n        print(f\"Error listing FIS experiments: {e}\")","lang":"python","description":"This quickstart demonstrates how to obtain a type-hinted FIS client and use it to list experiments. Explicitly annotating the client type (`client: FISClient`) is often recommended for better IDE support and static analysis. It also shows importing and using a TypedDict for the response structure. The `TYPE_CHECKING` block ensures that stub imports are only used during type checking."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or newer.","message":"Support for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0, affecting all generated `mypy-boto3-*` packages. Ensure your projects use Python 3.9 or higher.","severity":"breaking","affected_versions":">=8.12.0 of mypy-boto3-builder (corresponding mypy-boto3-fis versions)"},{"fix":"Review your imports and usage of `TypeDef` objects and update their names according to the new conventions.","message":"TypeDef naming conventions changed in `mypy-boto3-builder` 8.9.0. Specifically, redundant `Request` postfixes were removed (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`), and `Extra` postfixes moved to the end of the name. This impacts imports and usage of generated TypeDefs.","severity":"breaking","affected_versions":">=8.9.0 of mypy-boto3-builder (corresponding mypy-boto3-fis versions)"},{"fix":"Add explicit type annotations when initializing boto3 clients, resources, paginators, and waiters.","message":"For optimal IDE autocomplete and `mypy` checks, explicitly type-annotate `boto3.client()` and `boto3.session.client()` calls with the imported client type (e.g., `client: FISClient = boto3.client('fis')`). While `mypy` often auto-discovers types, explicit hints provide the best experience across all tools.","severity":"gotcha","affected_versions":"All"},{"fix":"Install `mypy` (`pip install mypy`) and configure it (e.g., via `pyproject.toml` or `mypy.ini`) in your project.","message":"The `mypy-boto3-fis` package provides type stubs, but `mypy` itself (the static type checker) is not a dependency and must be installed and configured separately in your project.","severity":"gotcha","affected_versions":"All"},{"fix":"Wrap type stub imports within `if TYPE_CHECKING:` blocks and provide fallback `object` assignments for runtime compatibility.","message":"When integrating with tools like Pylint, it's recommended to guard stub imports using `if TYPE_CHECKING:` to avoid runtime dependencies in production, as Pylint might otherwise complain about undefined variables if the stubs are not present at runtime.","severity":"gotcha","affected_versions":"All"},{"fix":"For PyCharm users, consider `boto3-stubs-lite` if performance is an issue, or ensure you are on the latest PyCharm and Python versions for potential improvements.","message":"PyCharm has known performance issues with `Literal` overloads. If you experience slow performance, consider using the `boto3-stubs-lite` version (e.g., `pip install 'boto3-stubs-lite[fis]'`), which is more RAM-friendly but requires more explicit type annotations.","severity":"gotcha","affected_versions":"All"}],"env_vars":null,"search_vec":"'3.9':62 '8.12.0':42 'activ':32 'align':47 'analysi':73 'annot':12 'aw':15,63 'boto3':3,7,22,29,39,49,64 'boto3-stubs':28 'builder':40 'capabl':59 'check':58 'client':20 'cloud':74 'comprehens':10 'date':56 'ecosystem':31 'ensur':52 'fault':17 'fis':4,8,16,70 'frequent':44 'generat':33 'hint':68 'inject':18 'maintain':35 'mypi':2,6,38,65 'mypy-boto3-builder':37 'mypy-boto3-fis':1,5 'part':25 'provid':9 'python':61 'releas':45 'servic':19 'static':72 'static-analysi':71 'stub':30,69 'type':11,57,67 'type-hint':66 'up-to-d':53 'updat':50 'version':41","created_at":"2026-04-11T09:20:34.731908+00:00","updated_at":"2026-04-16T16:56:43.053252+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmpped26y0g/venv/lib/python3.12/site-packages/mypy_boto3_fis/__init__.py\", line 35, in <module>\n    from .client import FISClient\n  File \"/tmp/tmpped26y0g/venv/lib/python3.12/site-packages/mypy_boto3_fis/client.py"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.43.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/youtype/mypy_boto3_builder","docs":"https://youtype.github.io/boto3_stubs_docs/mypy_boto3_fis/","changelog":null,"pypi":"https://pypi.org/project/mypy-boto3-fis/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs","aws"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-08-28","next_check":"2026-07-10","install_tag":null}}