mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Use ellipsis instead of pass in base filter abstract methods for aesthetic
This commit is contained in:
@@ -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]]: ...
|
||||
|
||||
Reference in New Issue
Block a user