Skip to content

Commit ae10ad0

Browse files
committed
chore: async test
1 parent 5635d5a commit ae10ad0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/python/api.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ class {{classname}}{{#isSyncClient}}Sync{{/isSyncClient}}:
9898
return self._transporter.close()
9999
{{/isSyncClient}}
100100

101-
def set_client_api_key(self, api_key: str) -> None:
101+
{{^isSyncClient}}async {{/isSyncClient}} set_client_api_key(self, api_key: str) -> None:
102102
"""Sets a new API key to authenticate requests."""
103103
self._transporter.config.set_client_api_key(api_key)
104104

105-
def add_user_agent(self, segment: str, version: Optional[str] = None) -> None:
105+
{{^isSyncClient}}async {{/isSyncClient}} add_user_agent(self, segment: str, version: Optional[str] = None) -> None:
106106
"""adds a segment to the default user agent, and update the headers sent with each requests as well"""
107107
self._transporter.config.add_user_agent(segment, version)
108108

0 commit comments

Comments
 (0)