{"id":3644,"library":"mypy-boto3-neptune-graph","title":"mypy-boto3-neptune-graph Type Stubs","description":"mypy-boto3-neptune-graph provides type annotations for the AWS NeptuneGraph service client in boto3, ensuring type-safe AWS interactions with MyPy. It is part of the larger `mypy-boto3` collection, automatically generated by `mypy-boto3-builder` version 8.12.0, and is currently at version 1.42.43. The `mypy-boto3` ecosystem follows a regular release cadence, often aligning with new boto3 service releases or builder improvements.","status":"active","version":"1.42.43","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["aws","boto3","mypy","typing","stubs","neptune-graph","type-hints"],"install":[{"cmd":"pip install mypy-boto3-neptune-graph","lang":"bash","label":"Install package"}],"dependencies":[{"reason":"This package provides type stubs for boto3; boto3 itself must be installed to use the client.","package":"boto3","optional":false}],"imports":[{"symbol":"NeptuneGraphClient","correct":"from mypy_boto3_neptune_graph.client import NeptuneGraphClient"},{"note":"For `boto3.resource` type annotations.","symbol":"NeptuneGraphServiceResource","correct":"from mypy_boto3_neptune_graph.service_resource import NeptuneGraphServiceResource"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_neptune_graph.client import NeptuneGraphClient\nfrom botocore.exceptions import ClientError\n\ndef get_neptune_graph_client() -> NeptuneGraphClient:\n    \"\"\"Gets a type-annotated NeptuneGraph client.\"\"\"\n    try:\n        client: NeptuneGraphClient = boto3.client(\"neptune-graph\")\n        # Example usage: list graphs (requires appropriate permissions)\n        # response = client.list_graphs()\n        # print(f\"Graphs: {response.get('graphs')}\")\n        return client\n    except ClientError as e:\n        print(f\"Error creating NeptuneGraph client: {e}\")\n        raise\n\nif __name__ == \"__main__\":\n    neptune_client = get_neptune_graph_client()\n    print(f\"NeptuneGraph client type: {type(neptune_client)}\")\n","lang":"python","description":"This quickstart demonstrates how to obtain a type-annotated `NeptuneGraphClient` using `boto3.client`. The `mypy-boto3-neptune-graph` stubs provide the `NeptuneGraphClient` type for static analysis."},"warnings":[{"fix":"Upgrade Python to 3.9 or higher.","message":"Support for Python 3.8 has been removed in `mypy-boto3-builder` 8.12.0. Users on Python 3.8 must either upgrade their Python version or use an older `mypy-boto3-builder` version if possible.","severity":"breaking","affected_versions":">=8.12.0 (builder), >=1.42.43 (this package)"},{"fix":"Ensure your `mypy` configuration (e.g., `pyproject.toml`) does not interfere with standard stub discovery. Remove any custom `mypy_path` entries that might point to old stub locations.","message":"All `mypy-boto3` packages, including `mypy-boto3-neptune-graph`, migrated to PEP 561-compliant packages in `mypy-boto3-builder` 8.12.0. This means type checkers should automatically discover them, but in rare cases, custom `mypy` configurations might need adjustment if they previously relied on non-standard stub locations.","severity":"breaking","affected_versions":">=8.12.0 (builder), >=1.42.43 (this package)"},{"fix":"Review type annotations if upgrading from very old versions to ensure `TypeDef` names match the new conventions.","message":"From `mypy-boto3-builder` 8.9.0, some `TypeDef` names were shortened (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`) and conflicting `Extra` postfixes moved (`CreateDistributionExtraRequestTypeDef` to `CreateDistributionRequestExtraTypeDef`). While this specific service might not be directly affected, it's a general breaking change in the builder that could alter type definition names.","severity":"breaking","affected_versions":">=8.9.0 (builder), versions of this package generated by >=8.9.0 builder"},{"fix":"Ensure `boto3` is installed: `pip install boto3`.","message":"This package provides only type stubs. It does NOT include `boto3` or `botocore` libraries, which are required for runtime execution. You must install `boto3` separately.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Install `mypy` (`pip install mypy`) and run it on your codebase (e.g., `mypy .`).","message":"For type checking, you need to run `mypy` or another compatible static type checker. Installing this package alone does not perform type checking automatically.","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"}