Skip to content

Commit

Permalink
refactor: put docstring into a single line
Browse files Browse the repository at this point in the history
If a docstring fits in a single line (72 characters according to PEP8), it is
recommended to have the quotes on the same line.
  • Loading branch information
deepsource-autofix[bot] authored Jan 9, 2024
1 parent f0a362e commit 88aec99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/ncm/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,7 @@ async def upload(self, data: dict, fr: str, event: Union[GroupMessageEvent, Priv
await self.upload_data_file(event=event, data=cf)

async def start_upload(self, ids: List[int], event: Union[GroupMessageEvent, PrivateMessageEvent]):
"""一般地 320k及以上即 flac, 320k及以下即 mp3,96k及以下即 m4a
"""
"""一般地 320k及以上即 flac, 320k及以下即 mp3,96k及以下即 m4a"""
data: list = self.get_detail(ids)
for i in range(len(ids)):
await self.upload(data[i], "song" if len(ids) == 1 else "list", event)
Expand Down

0 comments on commit 88aec99

Please sign in to comment.