Skip to content

Commit

Permalink
fix pyright ignore comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cleoold committed Jun 2, 2023
1 parent 18226dd commit 402a626
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types_linq/more/extrema_enumerable.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _get_iterable(self) -> Iterable[TSource_co]:
return _extrema_by(it, getter, self._selector, self._comparer, self._for_min)

# please maintain same overloads
def first(self, *args): # pyright: reportIncompatibleMethodOverride=false
def first(self, *args): # pyright: ignore[reportIncompatibleMethodOverride]
if len(args) == 0:
return MoreEnumerable.first(self.take(1))
else: # len(args) == 1
Expand Down
2 changes: 1 addition & 1 deletion types_linq/more/more_enumerable.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def aggregate_right(self, *args) -> Any:
seed = func(elem, seed)
return result_selector(seed)

def as_more(self) -> MoreEnumerable[TSource_co]: # pyright: reportIncompatibleMethodOverride=false
def as_more(self) -> MoreEnumerable[TSource_co]: # pyright: ignore[reportIncompatibleMethodOverride]
return self

def consume(self) -> None:
Expand Down

0 comments on commit 402a626

Please sign in to comment.