Skip to content

Commit 0cce937

Browse files
committed
fix build
1 parent f56ff45 commit 0cce937

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ nosetests.xml
4545
coverage.xml
4646
*.cover
4747
.pytest_cache/
48+
.python-version
4849

4950
# PyBuilder
5051
target/

graphql/execution/executor.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ def complete_value(
529529
lambda resolved: complete_value(
530530
exe_context, return_type, field_asts, info, path, resolved
531531
),
532-
lambda error: Promise.rejected(
532+
lambda error: Promise.rejected( # type: ignore
533533
GraphQLLocatedError(field_asts, original_error=error, path=path)
534534
),
535535
)
@@ -602,7 +602,7 @@ def complete_list_value(
602602
completed_results.append(completed_item)
603603
index += 1
604604

605-
return Promise.all(completed_results) if contains_promise else completed_results
605+
return Promise.all(completed_results) if contains_promise else completed_results # type: ignore
606606

607607

608608
def complete_leaf_value(
@@ -711,7 +711,7 @@ def complete_object_value(
711711

712712
# Collect sub-fields to execute to complete this value.
713713
subfield_asts = exe_context.get_sub_fields(return_type, field_asts)
714-
return execute_fields(exe_context, return_type, result, subfield_asts, path, info)
714+
return execute_fields(exe_context, return_type, result, subfield_asts, path, info) # type: ignore
715715

716716

717717
def complete_nonnull_value(

graphql/execution/executors/thread.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def clean(self):
3535

3636
def execute_in_thread(self, fn, *args, **kwargs):
3737
# type: (Callable, *Any, **Any) -> Promise
38-
promise = Promise()
38+
promise = Promise() # type: ignore
3939
thread = Thread(target=process, args=(promise, fn, args, kwargs))
4040
thread.start()
4141
self.threads.append(thread)

tox.ini

+1-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@ envlist = py27,py34,py35,py36,py37,pre-commit,pypy,mypy,docs
33

44
[testenv]
55
deps =
6-
pytest>=3.3,<4.0
7-
gevent>=1.1
8-
promise>=2.0
9-
six>=1.10.0
10-
pytest-mock
11-
pytest-benchmark
6+
.[test]
127
commands =
138
py{27,34,py}: py.test graphql tests {posargs}
149
py{35,36,37}: py.test graphql tests tests_py35 {posargs}

0 commit comments

Comments
 (0)