Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
remove useless supressions
Browse files Browse the repository at this point in the history
  • Loading branch information
steff456 committed Apr 29, 2019
1 parent ae45cdc commit 47d261f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion pyls/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# noqa pylint: disable=import-error
from .pyls_race_py3 import async_race
else:
# noqa pylint: disable=import-error
from .pyls_race_py2 import async_race


Expand Down
4 changes: 3 additions & 1 deletion pyls/pyls_race_py3.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import trio


# pylint: disable=syntax-error
def async_race(impls, **kwargs):
"""Create the race between rope and jedi using async functions."""
# pylint: disable=syntax-error
async def race(impls):
send_channel, receive_channel = trio.open_memory_channel(0)

# pylint: disable=syntax-error
async def _apply(impl):
return impl, impl.function(**kwargs)

# pylint: disable=syntax-error
async def jockey(impl):
if impl.plugin_name == 'rope_completion':
await trio.sleep(0.1)
Expand Down

0 comments on commit 47d261f

Please sign in to comment.