Use ellipsis instead of pass in base filter abstract methods for aesthetic

This commit is contained in:
Debanjum Singh Solanky
2022-09-14 13:29:58 +03:00
parent bf1ae038cb
commit 3169e3b78e

View File

@@ -4,13 +4,10 @@ from abc import ABC, abstractmethod
class BaseFilter(ABC): class BaseFilter(ABC):
@abstractmethod @abstractmethod
def load(self, *args, **kwargs): def load(self, *args, **kwargs): ...
pass
@abstractmethod @abstractmethod
def can_filter(self, raw_query:str) -> bool: def can_filter(self, raw_query:str) -> bool: ...
pass
@abstractmethod @abstractmethod
def apply(self, query:str, raw_entries:list[str]) -> tuple[str, set[int]]: def apply(self, query:str, raw_entries:list[str]) -> tuple[str, set[int]]: ...
pass