Switch to a mypy fork that handles imports (#823)

I'm seeing if I can upstream thundergolfer/bazel-mypy-integration#43, but we can also point at my fork for the time being.

This should resolve conflicts with mypy treating imports as non-hermetic, creating inconsistent behavior if packages are/aren't installed locally.
This commit is contained in:
Jon Meow
2021-09-13 13:08:54 -07:00
committed by GitHub
parent 5047cd6447
commit 3351443c8f
7 changed files with 28 additions and 12 deletions
+3 -4
View File
@@ -14,9 +14,8 @@ import os
from typing import Dict, Generator, Optional, Tuple
# https://pypi.org/project/gql/
# gql is missing type annotations, so disable checking on around it.
import gql # type: ignore
import gql.transport.requests # type: ignore
import gql
import gql.transport.requests
_ENV_TOKEN = "GITHUB_ACCESS_TOKEN"
@@ -53,7 +52,7 @@ class Client(object):
url="https://api.github.com/graphql",
headers={"Authorization": "bearer %s" % parsed_args.access_token},
)
self._client = gql.Client(transport=transport)
self._client = gql.Client(transport=transport) # type: ignore
def execute(self, query: str) -> Dict:
"""Runs a query."""