Skip to content

Commit

Permalink
refactor: pre-commit.ci auto fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Feb 12, 2024
1 parent 2655b53 commit 768c50f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/querpyable/querpyable.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""A Python implementation of LINQ."""

from abc import ABC, abstractmethod
from collections.abc import Callable, Generator, Iterable
from collections.abc import Callable, Generator, Iterable, Iterator
from itertools import chain
from typing import Optional, TypeVar

Expand Down Expand Up @@ -54,7 +54,7 @@ def __init__(self, count: int) -> None:
self.count = count

def __call__(self, source: Generator[T, None, None]) -> Generator[T, None, None]:
return (item for _, item in zip(range(self.count), source))
return (item for _, item in zip(range(self.count), source, strict=False))


class Skip(Query):
Expand Down Expand Up @@ -173,7 +173,7 @@ def __call__(
source1: Generator[T, None, None],
source2: Generator[U, None, None],
) -> Generator[tuple[T, U], None, None]:
return zip(source1, source2)
return zip(source1, source2, strict=False)


class All(Query):
Expand Down Expand Up @@ -513,7 +513,7 @@ def __init__(self, collection: Iterable[T]) -> None:
def __call__(self) -> Generator[T, None, None]:
return iter(self)

def __iter__(self) -> Generator[T, None, None]:
def __iter__(self) -> Iterator[T]:
yield from self.collection

@classmethod
Expand Down

0 comments on commit 768c50f

Please sign in to comment.