Skip to content

Commit e3d7b7c

Browse files
committed
fix: accept dict for generate_secured_api_key
1 parent 9f5be9f commit e3d7b7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/python/search_helpers.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
{{^isSyncClient}}async {{/isSyncClient}}def generate_secured_api_key(
195195
self,
196196
parent_api_key: str,
197-
restrictions: Optional[SecuredApiKeyRestrictions] = SecuredApiKeyRestrictions(),
197+
restrictions: Optional[Union[dict, SecuredApiKeyRestrictions]] = SecuredApiKeyRestrictions(),
198198
) -> str:
199199
"""
200200
Helper: Generates a secured API key based on the given `parent_api_key` and given `restrictions`.

0 commit comments

Comments
 (0)