From 3169e3b78e844669731eea7de583aa53160e0044 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Wed, 14 Sep 2022 13:29:58 +0300 Subject: [PATCH] Use ellipsis instead of pass in base filter abstract methods for aesthetic --- src/search_filter/base_filter.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/search_filter/base_filter.py b/src/search_filter/base_filter.py index 2550b32e..5b0ed62c 100644 --- a/src/search_filter/base_filter.py +++ b/src/search_filter/base_filter.py @@ -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 \ No newline at end of file + def apply(self, query:str, raw_entries:list[str]) -> tuple[str, set[int]]: ...