Revert "add type annotation of CommandsCache.get_predictor_threadable"

This reverts commit f16fae533c1cf073608dcd209fa079eced4b115b.
This commit is contained in:
virus 2019-05-22 01:40:54 +09:00
parent 3ab09cae39
commit d8826848cd

View file

@ -11,7 +11,6 @@ import time
import builtins
import argparse
import collections.abc as cabc
from typing import Callable, List
from xonsh.platform import ON_WINDOWS, ON_POSIX, pathbasename
from xonsh.tools import executables_in
@ -221,7 +220,7 @@ class CommandsCache(cabc.Mapping):
predictor = self.get_predictor_threadable(cmd[0])
return predictor(cmd[1:])
def get_predictor_threadable(self, cmd0: str) -> Callable[[List[str]], bool]:
def get_predictor_threadable(self, cmd0):
"""Return the predictor whether a command list is able to be run on a
background thread, rather than the main thread.
"""