Skip to content

Commit dad6e95

Browse files
authored
Update domain.py
Minor inaccuracies were fixed
1 parent 7c073de commit dad6e95

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/yandex_cloud_ml_sdk/_files/domain.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
class BaseFiles(BaseDomain, Generic[FileTypeT]):
2222
"""Files domain, which contains API for working with files.
23+
2324
Files is a part of :ref:`Assistants API`, which is the only place you could use it.
2425
Provides upload, get and list methods that allow you to work with remote file objects you created earlier.
2526
"""
@@ -40,10 +41,10 @@ async def _upload_bytes(
4041
"""Uploads a byte array as a file.
4142
4243
:param data: The byte data to upload.
43-
:param name: The name of the file on server.
44+
:param name: The name of the file on the server.
4445
:param description: A description of the file.
4546
:param mime_type: The MIME type of the file.
46-
By default (i.e. when UNDEFINED) server will try to auto-detect mime-type and you could override this file.
47+
By default (i.e. when UNDEFINED) the server will try to auto-detect mime-type and you could override this file.
4748
:param labels: Labels associated with the file.
4849
:param ttl_days: Time-to-live in days for the file.
4950
:param expiration_policy: Expiration policy for the file.
@@ -91,10 +92,10 @@ async def _upload(
9192
"""Uploads a file from a specified path.
9293
9394
:param path: The path of the file to upload.
94-
:param name: The name of the file on server.
95+
:param name: The name of the file on the server.
9596
:param description: A description of the file.
9697
:param mime_type: The MIME type of the file.
97-
By default (i.e. when UNDEFINED) server will try to auto-detect mime-type and you could override this file.
98+
By default (i.e. when UNDEFINED) the server will try to auto-detect mime-type and you could override this file.
9899
:param labels: Labels associated with the file.
99100
:param ttl_days: Time-to-live in days for the file.
100101
:param expiration_policy: Expiration policy for the file.

0 commit comments

Comments
 (0)