Skip to content

Commit

Permalink
abstract palle not work on nas python
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-ld committed Mar 25, 2021
1 parent 64de489 commit 8842752
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions smart_tv_telegram/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ def ascii_only(haystack: str) -> str:
return "".join(c for c in haystack if ord(c) < 128)


_ExecutorReturnType = typing.TypeVar("_ExecutorReturnType")


async def run_method_in_executor(func: typing.Callable[[...], _ExecutorReturnType], *args) -> _ExecutorReturnType:
async def run_method_in_executor(func, *args):
return await _LOOP.run_in_executor(_EXECUTOR, func, *args)


Expand Down

0 comments on commit 8842752

Please sign in to comment.