From f5308cab9fa69b7492fc734d1aa4f2609573d2aa Mon Sep 17 00:00:00 2001 From: Alexey Stepanov Date: Fri, 18 May 2018 10:55:14 +0200 Subject: [PATCH] Do not check types for gevent: types not exported --- threaded/__init__.py | 4 +--- threaded/_base_gthreadpooled.pyi | 4 ++-- threaded/_gthreadpooled2.pyi | 2 +- threaded/_gthreadpooled3.pyi | 2 +- threaded/_threaded3.pyi | 2 +- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/threaded/__init__.py b/threaded/__init__.py index 8074e95..0d49c1c 100644 --- a/threaded/__init__.py +++ b/threaded/__init__.py @@ -75,7 +75,5 @@ 'Dennis Dmitriev': 'dis-xcom@gmail.com', } __url__ = 'https://github.com/python-useful-helpers/threaded' -__description__ = ( - "Decorators for running functions in Thread/ThreadPool/IOLoop" -) +__description__ = "Decorators for running functions in Thread/ThreadPool/IOLoop" __license__ = "Apache License, Version 2.0" diff --git a/threaded/_base_gthreadpooled.pyi b/threaded/_base_gthreadpooled.pyi index eb1bb36..b61fb09 100644 --- a/threaded/_base_gthreadpooled.pyi +++ b/threaded/_base_gthreadpooled.pyi @@ -1,5 +1,5 @@ -import gevent.event -import gevent.threadpool +import gevent.event # type: ignore +import gevent.threadpool # type: ignore import typing from . import _base_threaded diff --git a/threaded/_gthreadpooled2.pyi b/threaded/_gthreadpooled2.pyi index ac0028e..1f05d4c 100644 --- a/threaded/_gthreadpooled2.pyi +++ b/threaded/_gthreadpooled2.pyi @@ -1,4 +1,4 @@ -import gevent.event +import gevent.event # type: ignore import typing from . import _base_gthreadpooled diff --git a/threaded/_gthreadpooled3.pyi b/threaded/_gthreadpooled3.pyi index ac0028e..1f05d4c 100644 --- a/threaded/_gthreadpooled3.pyi +++ b/threaded/_gthreadpooled3.pyi @@ -1,4 +1,4 @@ -import gevent.event +import gevent.event # type: ignore import typing from . import _base_gthreadpooled diff --git a/threaded/_threaded3.pyi b/threaded/_threaded3.pyi index 393bb3f..7853302 100644 --- a/threaded/_threaded3.pyi +++ b/threaded/_threaded3.pyi @@ -19,7 +19,7 @@ class ThreadPooled(_base_threaded.BasePooled): @property def loop_getter_need_context(self) -> bool: ... - def _get_function_wrapper(self, func: typing.Callable) -> typing.Callable[..., typing.Union[concurrent.futures.Future, asyncio.Task]]: ... + def _get_function_wrapper(self, func: typing.Callable) -> typing.Callable[..., typing.Union[concurrent.futures.Future, asyncio.Task]]: ... # type: ignore class Threaded(_base_threaded.BaseThreaded): def _get_function_wrapper(self, func: typing.Callable) -> typing.Callable[..., threading.Thread]: ...