Update pyscreeze stubs (#10223)

This commit is contained in:
Jelle Zijlstra
2023-05-26 06:11:56 -07:00
committed by GitHub
parent a4856c5650
commit 2f65ca5cd4
2 changed files with 5 additions and 3 deletions

View File

@@ -1,2 +1,4 @@
# temp variable used to define scrotExists by checking if the command "scrot" exists
pyscreeze.whichProc
# present but unimplemented
pyscreeze.screenshotWindow

View File

@@ -41,7 +41,7 @@ class PyScreezeException(Exception): ...
class ImageNotFoundException(PyScreezeException): ...
# _locateAll_opencv
def requiresPillow(wrappedFunction: Callable[_P, _R]) -> Callable[_P, _R]: ...
def requiresPyGetWindow(wrappedFunction: Callable[_P, _R]) -> Callable[_P, _R]: ...
@overload
def locate(
needleImage: str | Image.Image | _Mat,
@@ -142,6 +142,8 @@ def locateCenterOnScreen(
step: int = 1,
confidence: None = None,
) -> Point | None: ...
def locateOnScreenNear(image: str | Image.Image | _Mat, x: int, y: int) -> Box: ...
def locateCenterOnScreenNear(image: str | Image.Image | _Mat, x: int, y: int) -> Point | None: ...
# _locateAll_opencv
@overload
@@ -176,8 +178,6 @@ def pixelMatchesColor(
def pixel(x: int, y: int) -> tuple[int, int, int]: ...
def screenshot(imageFilename: StrOrBytesPath | None = None, region: tuple[int, int, int, int] | None = None) -> Image.Image: ...
grab = screenshot
# _locateAll_opencv
@overload
def locateAll(