Skip to content

Use typing_extensions instead of inspect and typing to correctly backport modern functionality #14

Description

@ericbstie

gqlrequests/query_creator.py suffers from whacky code that imports certain properties based on the current Python version. This makes mypy complain too, and per now these type errors are just ignored. The correct solution would be to use the typing_extensions module instead, which backports common type-related functions from inspect and typing.

https://typing-extensions.readthedocs.io/en/latest/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions