v2.1.1
·
15 commits
to main
since this release
Merge Python SDK Release Notes - Version [2.1.1]
Changes
- Update nested object return type
Dictionaries of objects, or lists of strings and objects will now be typed with the object. For example for the following code snippet:
import merge
from merge.client import Merge
merge_client = merge.Merge(api_key=api_key, account_token=account_token)
response = merge_client.filestorage.files.list(page_size=1)
assert response.results
file = response.results[0]
permission = file.permissions[0]
- The type of
permissionwill be<class 'merge.resources.filestorage.types.permission.Permission'>instead of<class 'dict'>