Upgrade deps, fix lint

This commit is contained in:
John Reese 2020-10-13 23:09:10 -07:00
parent 8fce5f9f5b
commit 3cfcd4d62b
4 changed files with 13 additions and 12 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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
git+https://github.com/miyakogi/m2r@66f4a5a500cdd9fc59085106bff082c9cadafaf3