diff --git a/.pylint b/.pylint index fbf462f..9b4f212 100644 --- a/.pylint +++ b/.pylint @@ -141,7 +141,8 @@ disable=print-statement, unused-argument, missing-docstring, function-redefined, - line-too-long + line-too-long, + raise-missing-from # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option diff --git a/aioitertools/builtins.py b/aioitertools/builtins.py index c69457e..75c1164 100644 --- a/aioitertools/builtins.py +++ b/aioitertools/builtins.py @@ -142,14 +142,14 @@ async def map(fn: Callable[[T], R], itr: AnyIterable[T]) -> AsyncIterator[R]: @overload async def max( - itr: AnyIterable[Orderable], *, key: Optional[Callable] = None, + itr: AnyIterable[Orderable], *, key: Optional[Callable] = None ) -> Orderable: # pragma: no cover pass @overload async def max( - itr: AnyIterable[Orderable], *, default: T, key: Optional[Callable] = None, + itr: AnyIterable[Orderable], *, default: T, key: Optional[Callable] = None ) -> Union[Orderable, T]: # pragma: no cover pass @@ -201,14 +201,14 @@ async def max(itr: AnyIterable[Orderable], **kwargs: Any) -> Any: @overload async def min( - itr: AnyIterable[Orderable], *, key: Optional[Callable] = None, + itr: AnyIterable[Orderable], *, key: Optional[Callable] = None ) -> Orderable: # pragma: no cover pass @overload async def min( - itr: AnyIterable[Orderable], *, default: T, key: Optional[Callable] = None, + itr: AnyIterable[Orderable], *, default: T, key: Optional[Callable] = None ) -> Union[Orderable, T]: # pragma: no cover pass diff --git a/aioitertools/tests/builtins.py b/aioitertools/tests/builtins.py index e2c766f..a9875af 100644 --- a/aioitertools/tests/builtins.py +++ b/aioitertools/tests/builtins.py @@ -100,9 +100,9 @@ class BuiltinsTest(TestCase): def __anext__(self): if self.index > 2: raise StopAsyncIteration() - return self.next() + return self.fake_next() - async def next(self): + async def fake_next(self): value = slist[self.index] self.index += 1 return value diff --git a/requirements-dev.txt b/requirements-dev.txt index a7cafac..9c73e03 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,9 +1,9 @@ -black==19.10b0 -codecov==2.0.22 -coverage[toml]==5.1 +black==20.8b1 +codecov==2.1.10 +coverage[toml]==5.3 flit==3.0.0 mypy==0.790 -pylint==2.4.4 +pylint==2.4.4 # pyup: <2.5 sphinx==3.3.0 usort==0.6.0 -git+https://github.com/miyakogi/m2r \ No newline at end of file +git+https://github.com/miyakogi/m2r@66f4a5a500cdd9fc59085106bff082c9cadafaf3