Skip to content

Commit fa289e0

Browse files
committed
chore: update Python SDK to 16.0.0
1 parent 97ff4ec commit fa289e0

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

appwrite/models/base_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def from_dict(cls: Type[ModelType], data: Optional[Dict[str, Any]]) -> Optional[
2121
return cls.model_validate(data)
2222

2323
def to_dict(self) -> Dict[str, Any]:
24-
return self.model_dump(by_alias=True, mode='json')
24+
return self.model_dump(by_alias=True, mode='json', exclude_unset=True)
2525

2626
def to_json(self) -> str:
2727
return self.model_dump_json(by_alias=True)

docs/examples/databases/get-attribute.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ from appwrite.models import AttributeIp
1111
from appwrite.models import AttributeDatetime
1212
from appwrite.models import AttributeRelationship
1313
from appwrite.models import AttributeString
14+
from typing import Union
1415

1516
client = Client()
1617
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint

docs/examples/locale/get.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
```python
22
from appwrite.client import Client
33
from appwrite.services.locale import Locale
4-
from appwrite.models import Locale
4+
from appwrite.models import Locale as LocaleModel
55

66
client = Client()
77
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
@@ -10,7 +10,7 @@ client.set_session('') # The user session to authenticate with
1010

1111
locale = Locale(client)
1212

13-
result: Locale = locale.get()
13+
result: LocaleModel = locale.get()
1414

1515
print(result.model_dump())
1616
```

docs/examples/tablesdb/get-column.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ from appwrite.models import ColumnIp
1111
from appwrite.models import ColumnDatetime
1212
from appwrite.models import ColumnRelationship
1313
from appwrite.models import ColumnString
14+
from typing import Union
1415

1516
client = Client()
1617
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint

0 commit comments

Comments
 (0)