mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Update pyscreeze stubs (#10223)
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
# temp variable used to define scrotExists by checking if the command "scrot" exists
|
||||
pyscreeze.whichProc
|
||||
# present but unimplemented
|
||||
pyscreeze.screenshotWindow
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user