Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jnak committed Dec 27, 2019
1 parent f56ff45 commit 0cce937
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ nosetests.xml
coverage.xml
*.cover
.pytest_cache/
.python-version

# PyBuilder
target/
Expand Down
6 changes: 3 additions & 3 deletions graphql/execution/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ def complete_value(
lambda resolved: complete_value(
exe_context, return_type, field_asts, info, path, resolved
),
lambda error: Promise.rejected(
lambda error: Promise.rejected( # type: ignore
GraphQLLocatedError(field_asts, original_error=error, path=path)
),
)
Expand Down Expand Up @@ -602,7 +602,7 @@ def complete_list_value(
completed_results.append(completed_item)
index += 1

return Promise.all(completed_results) if contains_promise else completed_results
return Promise.all(completed_results) if contains_promise else completed_results # type: ignore


def complete_leaf_value(
Expand Down Expand Up @@ -711,7 +711,7 @@ def complete_object_value(

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


def complete_nonnull_value(
Expand Down
2 changes: 1 addition & 1 deletion graphql/execution/executors/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def clean(self):

def execute_in_thread(self, fn, *args, **kwargs):
# type: (Callable, *Any, **Any) -> Promise
promise = Promise()
promise = Promise() # type: ignore
thread = Thread(target=process, args=(promise, fn, args, kwargs))
thread.start()
self.threads.append(thread)
Expand Down
7 changes: 1 addition & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ envlist = py27,py34,py35,py36,py37,pre-commit,pypy,mypy,docs

[testenv]
deps =
pytest>=3.3,<4.0
gevent>=1.1
promise>=2.0
six>=1.10.0
pytest-mock
pytest-benchmark
.[test]
commands =
py{27,34,py}: py.test graphql tests {posargs}
py{35,36,37}: py.test graphql tests tests_py35 {posargs}
Expand Down

0 comments on commit 0cce937

Please sign in to comment.