Remove ImgType docstring
* Bad decision, but makes the pre-commit hook happy
This commit is contained in:
1 parent
c2dd5031ba
commit
c8f7622e91
3 files changed
+218
-40
No files matched your search
Generated
+217
-33
File diff suppressed because it is too large.
Load diff
@@ -44,6 +44,7 @@ opencv-python = { version = ">=4.5.5.64", optional = true }
|
||||
opencv-python-headless = ">=4.5.5.64"
|
||||
requests = { version = ">=2.26.0,<=2.31.0", optional = true }
|
||||
tqdm = { version = ">=4.62.3,<=4.66.1", optional = true }
|
||||
types-pillow = "^10.2.0.20240206"
|
||||
|
||||
[tool.poetry.extras]
|
||||
desktop = ["opencv-python"]
|
||||
|
||||
@@ -6,13 +6,6 @@ from PIL import Image
|
||||
|
||||
from supervision.detection.core import Detections
|
||||
|
||||
"""
|
||||
An image of type `np.ndarray` or `PIL.Image.Image`.
|
||||
|
||||
Unlike a `Union`, ensures the type remains consistent. If a function
|
||||
takes an `ImgType` argument and returns an `ImgType`, when you pass
|
||||
an `np.ndarray`, you will always get an `np.ndarray` back.
|
||||
"""
|
||||
ImgType = TypeVar("ImgType", np.ndarray, Image.Image)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user