fix
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
from typing import Protocol, runtime_checkable
|
||||
from typing import Protocol
|
||||
|
||||
from docutranslate.ir.document import Document
|
||||
|
||||
|
||||
@runtime_checkable
|
||||
class Converter(Protocol):
|
||||
def convert(self, document: Document) -> Document:
|
||||
...
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
from typing import runtime_checkable
|
||||
|
||||
from typing import Protocol
|
||||
from docutranslate.converter.interfaces import Converter
|
||||
from docutranslate.ir.document import Document
|
||||
@@ -7,7 +5,6 @@ from docutranslate.ir.markdown_document import MarkdownDocument
|
||||
|
||||
|
||||
|
||||
@runtime_checkable
|
||||
class X2MarkdownConverter(Converter,Protocol):
|
||||
"""
|
||||
负责将其它格式的文件转换为markdown
|
||||
|
||||
Reference in New Issue
Block a user