Create typing.py
Browse files- 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]
|