mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 16:14:21 +00:00
Use ellipsis instead of pass in base filter abstract methods for aesthetic
This commit is contained in:
parent
bf1ae038cb
commit
3169e3b78e
1 changed files with 3 additions and 6 deletions
|
@ -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]]: ...
|
||||
|
|
Loading…
Add table
Reference in a new issue