Skip to content

Commit

Permalink
chore: make the type hint public
Browse files Browse the repository at this point in the history
  • Loading branch information
clintval committed Jul 15, 2024
1 parent 607e63a commit 360a3e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fgpyo/collections/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def __le__(self, other: Any) -> bool: ...

IterType = TypeVar("IterType")

_LessThanOrEqualType = TypeVar("_LessThanOrEqualType", bound=_SupportsLessThanOrEqual)
LessThanOrEqualType = TypeVar("LessThanOrEqualType", bound=_SupportsLessThanOrEqual)
"""A type variable for an object that supports less-than-or-equal comparisons."""


Expand Down Expand Up @@ -192,7 +192,7 @@ def dropwhile(self, pred: Callable[[IterType], bool]) -> "PeekableIterator[IterT
return self


def is_sorted(iterable: Iterable[_LessThanOrEqualType]) -> bool:
def is_sorted(iterable: Iterable[LessThanOrEqualType]) -> bool:
"""Tests lazily if an iterable of comparable objects is sorted or not.
Args:
Expand Down

0 comments on commit 360a3e7

Please sign in to comment.