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):
@abstractmethod
def load(self, *args, **kwargs):
pass
def load(self, *args, **kwargs): ...
@abstractmethod
def can_filter(self, raw_query:str) -> bool:
pass
def can_filter(self, raw_query:str) -> bool: ...
@abstractmethod
def apply(self, query:str, raw_entries:list[str]) -> tuple[str, set[int]]:
pass
def apply(self, query:str, raw_entries:list[str]) -> tuple[str, set[int]]: ...