Remove unused imports. Fix typing and indentation

- Typing issues discovered using `mypy'. Fixed manually
- Unused imports discovered and fixed using `autoflake'
- Fix indentation in `org_to_jsonl' manually
This commit is contained in:
Debanjum Singh Solanky
2022-09-14 02:58:49 +03:00
parent be57c711fd
commit 8f57a62675
14 changed files with 34 additions and 42 deletions

View File

@@ -1,9 +1,5 @@
# Standard Packages
from abc import ABC, abstractmethod
from typing import List, Set, Tuple
# External Packages
import torch
class BaseFilter(ABC):
@@ -16,5 +12,5 @@ class BaseFilter(ABC):
pass
@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