Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve strawberry.enum typing by using generics #1568

Merged
merged 3 commits into from
Jan 11, 2022

Commits on Jan 10, 2022

  1. Overload strawberry.enum() for better type hints.

    Also use a TypeVar so that the enum fields can be
    detected by the typechecker.
    TimDumol committed Jan 10, 2022
    Configuration menu
    Copy the full SHA
    76e014d View commit details
    Browse the repository at this point in the history
  2. Add tests for pyright

    patrick91 committed Jan 10, 2022
    Configuration menu
    Copy the full SHA
    bfbc422 View commit details
    Browse the repository at this point in the history
  3. Reformat release notes

    patrick91 committed Jan 10, 2022
    Configuration menu
    Copy the full SHA
    28f9de2 View commit details
    Browse the repository at this point in the history