New minimum requirements (#1515)

* New minimum requirements
* Add ConversationStyleOptionSets to Bing
* Add image.ImageRequest
* Improve python version support
* Improve unittests
This commit is contained in:
H Lohaus 2024-01-26 07:54:13 +01:00 committed by GitHub
parent 71d71b6512
commit feb83c168b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 471 additions and 284 deletions

View file

@ -1,6 +1,9 @@
import sys
from typing import Any, AsyncGenerator, Generator, NewType, Tuple, Union, List, Dict, Type, IO, Optional
from PIL.Image import Image
try:
from PIL.Image import Image
except ImportError:
Image = type
if sys.version_info >= (3, 8):
from typing import TypedDict
@ -11,6 +14,7 @@ SHA256 = NewType('sha_256_hash', str)
CreateResult = Generator[str, None, None]
AsyncResult = AsyncGenerator[str, None]
Messages = List[Dict[str, str]]
Cookies = List[Dict[str, str]]
ImageType = Union[str, bytes, IO, Image, None]
__all__ = [