fix version checking

Former-commit-id: 5780da8d640609cca388f55983d0251e5547209a
This commit is contained in:
hiyouga
2024-03-06 14:51:51 +08:00
parent 6b407092d9
commit 73d9dfc7ab
18 changed files with 49 additions and 33 deletions

View File

@@ -75,8 +75,7 @@ class Formatter(ABC):
tool_format: Literal["default"] = "default"
@abstractmethod
def apply(self, **kwargs) -> SLOTS:
...
def apply(self, **kwargs) -> SLOTS: ...
def extract(self, content: str) -> Union[str, Tuple[str, str]]:
raise NotImplementedError