Skip to content

Commit c5535e9

Browse files
committed
add example in docstring for sync
1 parent a9954a7 commit c5535e9

File tree

2 files changed

+504
-2
lines changed

2 files changed

+504
-2
lines changed

synapseclient/models/mixins/json_schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ async def bind_json_schema():
609609
610610
# Optionally, bind the same schema to a file
611611
example_file = File(
612-
path="/Users/lpeng/Downloads/Sample_E.csv", # Replace with your test file path
612+
path="Sample.txt", # Replace with your test file path
613613
parent_id=test_folder.id,
614614
).store()
615615
@@ -813,7 +813,7 @@ async def get_schema_derived_keys_from_file():
813813

814814

815815
@async_to_sync
816-
class ContainerEntityJSONSchema(BaseJSONSchema, ContainerEntityJSONSchemaProtocol):
816+
class ContainerEntityJSONSchema(ContainerEntityJSONSchemaProtocol, BaseJSONSchema):
817817
"""
818818
Mixin class to provide JSON schema functionality.
819819
This class is intended to be used with classes that represent Synapse entities.

0 commit comments

Comments
 (0)