This commit is contained in:
ton
2024-10-07 10:13:40 +07:00
parent aa1631742f
commit 3a7d696db6
9729 changed files with 1832837 additions and 161742 deletions

View File

@@ -0,0 +1,17 @@
from io import BytesIO
from typing import Union, BinaryIO
from pathlib import Path
try:
from numpy.typing import ArrayLike
except ImportError:
# numpy<1.20 fall back to using ndarray
from numpy import ndarray as ArrayLike
ImageResource = Union[str, bytes, BytesIO, Path, BinaryIO]
__all__ = [
"ArrayLike",
"ImageResource",
]