Skip to content

Commit

Permalink
fix: supressing lgtm dan flake8
Browse files Browse the repository at this point in the history
Signed-off-by: slowy07 <slowy.arfy@proton.me>
  • Loading branch information
slowy07 committed Oct 24, 2024
1 parent ac1f0e4 commit ef6f274
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions algorithm/searching/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
@runtime_checkable
class SizedIndexable(Iterable[T], Protocol[T]):
@overload
def __getitem__(self, key: slice) -> SizedIndexable[T]: ...
def __getitem__(self, key: slice) -> SizedIndexable[T]:
"""
Hanya untuk suppress LGTM alert
"""

def __len__(self) -> int: ...
def __len__(self) -> int:
"""
hanya untuk supress LGTM alert
"""
10 changes: 8 additions & 2 deletions algorithm/searching/binary_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,18 @@


class Comparable(Protocol):
def __lt__(self, other: Any) -> bool: ...
def __lt__(self, other: Any) -> bool:
"""
Hanya untuk supress LGTM alert
"""

def __le__(self, other: Any) -> bool:
"""Hanya untuk suppress LGTM alert."""

def __gt__(self, other: Any) -> bool: ...
def __gt__(self, other: Any) -> bool:
"""
Hanya untuk supress LGTM alert
"""

def __ge__(self, other: Any) -> bool:
"""Hanya untuk suppress LGTM alert."""
Expand Down

0 comments on commit ef6f274

Please sign in to comment.