graphene-stubs provides type stubs and a mypy plugin for Graphene (the GraphQL framework for Python). Version 0.16 adds comprehensive stubs for graphene objects and enhances mypy integration. Releases are infrequent.
pip install graphene-stubsVerified import paths — ran on the pinned version, not inferred.
Enable the mypy plugin and write a simple graphene schema. The stubs provide type inference for ObjectType, Field, etc.
Add 'plugins = graphene_stubs.mypy_plugin' to your mypy configuration file.
Install graphene alongside graphene-stubs: pip install graphene graphene-stubs
Monitor the repository for updates; if stubs become outdated, temporarily use # type: ignore or custom stubs.