mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-30 11:15:03 +01:00
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:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user