Niansuh commited on
Commit
ede8b1e
·
verified ·
1 Parent(s): 169818a

Create typing.py

Browse files
Files changed (1) hide show
  1. api/typing.py +7 -0
api/typing.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # api/typing.py
2
+
3
+ from typing import AsyncGenerator, Union, List, Dict
4
+ from .image import ImageResponse
5
+
6
+ Messages = List[Dict[str, Union[str, list]]]
7
+ AsyncResult = AsyncGenerator[Union[str, ImageResponse], None]