Skip to content

Commit

Permalink
Class def updates
Browse files Browse the repository at this point in the history
- _WrappedMat private
- Algorithm base __init__
- VideoCapture
- Method overload missing self arg
- python/mypy#8881
  • Loading branch information
Avasam committed Oct 15, 2022
1 parent 0a688b7 commit 37bb1d1
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 75 deletions.
6 changes: 3 additions & 3 deletions stubs/opencv-python/cv2/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ from cv2 import (
version as version,
)
from cv2.cv2 import *
from cv2.mat_wrapper import Mat as WrappedMat, _NDArray
from cv2.mat_wrapper import Mat as _WrappedMat, _NDArray

__all__: list[str] = []

def bootstrap() -> None: ...

Mat: TypeAlias = WrappedMat | _NDArray
Mat: TypeAlias = _WrappedMat | _NDArray
# TODO: Make Mat generic with int or float
_MatF: TypeAlias = WrappedMat | _NDArray # noqa: Y047
_MatF: TypeAlias = _WrappedMat | _NDArray # noqa: Y047
Loading

0 comments on commit 37bb1d1

Please sign in to comment.