Skip to content

Commit a1c4ade

Browse files
committed
update comments
1 parent fe42c8d commit a1c4ade

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

example/example.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ async def create_ssh_key_item(client: Client):
271271

272272
async def create_and_replace_document_item(client: Client):
273273
# [developer-docs.sdk.python.create-document-item]-start
274+
# Create a Document Item
274275
to_create = ItemCreateParams(
275276
title="Document Item Created with Python SDK",
276277
category=ItemCategory.DOCUMENT,
@@ -308,6 +309,7 @@ async def create_and_replace_document_item(client: Client):
308309

309310
async def create_attach_and_delete_file_field_item(client: Client):
310311
# [developer-docs.sdk.python.create-item-with-file-field]-start
312+
# Create a File Field Item
311313
to_create = ItemCreateParams(
312314
title="FileField Item created with Python SDK",
313315
category=ItemCategory.LOGIN,
@@ -337,12 +339,12 @@ async def create_attach_and_delete_file_field_item(client: Client):
337339
# [developer-docs.sdk.python.create-item-with-file-field]-end
338340

339341
# [developer-docs.sdk.python.attach-file-field-item]-start
340-
# Attach a file to the item
342+
# Attach a file field to the item
341343
attached_item = await client.items.files.attach(created_item,FileCreateParams(name="file2.txt",content=Path("./example/file2.txt").read_bytes(),sectionId="",fieldId="new_file_field"))
342344
# [developer-docs.sdk.python.attach-file-field-item]-end
343345

344346
# [developer-docs.sdk.python.delete-file-field-item]-start
345-
# Delete the file from the item
347+
# Delete a file field from an item
346348
deleted_item = await client.items.files.delete(attached_item, attached_item.files[0].section_id, attached_item.files[0].field_id)
347349
# [developer-docs.sdk.python.delete-file-field-item]-end
348350

0 commit comments

Comments
 (0)