fix wrong syntax of type definitions (#1678)
This commit is contained in:
parent
8fbc374f31
commit
d3a2c0ed34
13 changed files with 29 additions and 29 deletions
|
|
@ -104,7 +104,7 @@ class UniversalChatStopApi(UniversalChatResource):
|
|||
return {'result': 'success'}, 200
|
||||
|
||||
|
||||
def compact_response(response: Union[dict | Generator]) -> Response:
|
||||
def compact_response(response: Union[dict, Generator]) -> Response:
|
||||
if isinstance(response, dict):
|
||||
return Response(response=json.dumps(response), status=200, mimetype='application/json')
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue