fix wrong syntax of type definitions (#1678)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user