update python samples

This commit is contained in:
William Cheng 2025-02-18 16:51:17 +08:00
parent 5687edcf02
commit 8fb81ea554
2 changed files with 2 additions and 2 deletions

View File

@ -509,7 +509,7 @@ class ApiClient:
if k in collection_formats:
collection_format = collection_formats[k]
if collection_format == 'multi':
new_params.extend((k, quote(value)) for value in v)
new_params.extend((k, value) for value in v)
else:
if collection_format == 'ssv':
delimiter = ' '

View File

@ -545,7 +545,7 @@ class ApiClient:
if k in collection_formats:
collection_format = collection_formats[k]
if collection_format == 'multi':
new_params.extend((k, str(value)) for value in v)
new_params.extend((k, quote(str(value))) for value in v)
else:
if collection_format == 'ssv':
delimiter = ' '