Skip to content

Commit 708e4ab

Browse files
committed
🎨 格式化文档
1 parent 19cb1df commit 708e4ab

File tree

5 files changed

+166
-52
lines changed

5 files changed

+166
-52
lines changed

core/api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class BMCLAPIFile:
2626
hash: str
2727
size: int
2828
mtime: int = 0
29+
2930
def __hash__(self):
3031
return int.from_bytes(bytes.fromhex(self.hash))
3132

@@ -78,8 +79,8 @@ class Storage(metaclass=abc.ABCMeta):
7879
@abc.abstractmethod
7980
async def get(self, file: str) -> File:
8081
"""
81-
get file metadata.
82-
return File
82+
get file metadata.
83+
return File
8384
"""
8485
raise NotImplementedError
8586

@@ -124,7 +125,7 @@ async def get_files(self, dir: str) -> list[str]:
124125
return list[str]
125126
"""
126127
raise NotImplementedError
127-
128+
128129
@abc.abstractmethod
129130
async def get_hash(self, hash: str) -> str:
130131
"""
@@ -133,7 +134,6 @@ async def get_hash(self, hash: str) -> str:
133134
"""
134135
raise NotImplementedError
135136

136-
137137
@abc.abstractmethod
138138
async def get_files_size(self, dir: str) -> int:
139139
"""

0 commit comments

Comments
 (0)