mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-11-05 07:39:47 +00:00
style(file-io): keep complete-read signature formatter-stable
This commit is contained in:
parent
ced8735af4
commit
ac4b0da14c
1 changed files with 4 additions and 1 deletions
|
|
@ -103,7 +103,10 @@ def _decode_known_file(data: bytes, file_extension: str) -> tuple[str, str]:
|
|||
|
||||
|
||||
async def read_file_safe(
|
||||
file_path, max_bytes: int = MAX_FILE_READ_BYTES, *, require_complete: bool = False
|
||||
file_path,
|
||||
max_bytes: int = MAX_FILE_READ_BYTES,
|
||||
*,
|
||||
require_complete: bool = False,
|
||||
) -> tuple[str, str]:
|
||||
"""Read file in byte mode and decode using extension-aware strategy.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue