mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Bump PyScreeze to 0.1.30 (#11025)
This commit is contained in:
2
stubs/PyScreeze/@tests/stubtest_allowlist.txt
Normal file
2
stubs/PyScreeze/@tests/stubtest_allowlist.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# present but unimplemented
|
||||
pyscreeze.screenshotWindow
|
||||
@@ -1,4 +1,2 @@
|
||||
# temp variable used to define scrotExists by checking if the command "scrot" exists
|
||||
pyscreeze.whichProc
|
||||
# present but unimplemented
|
||||
pyscreeze.screenshotWindow
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
version = "0.1.29"
|
||||
version = "0.1.30"
|
||||
upstream_repository = "https://github.com/asweigart/pyscreeze"
|
||||
requires = ["types-Pillow"]
|
||||
|
||||
[tool.stubtest]
|
||||
# Linux has extra constants, win32 has different definitions
|
||||
platforms = ["linux", "win32"]
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
from _typeshed import Incomplete, ReadableBuffer, StrOrBytesPath, Unused
|
||||
from collections.abc import Callable, Generator
|
||||
from typing import NamedTuple, SupportsFloat, TypeVar, overload
|
||||
@@ -11,10 +12,17 @@ _R = TypeVar("_R")
|
||||
# But can't import either, because pyscreeze does not declare them as dependencies, stub_uploader won't let it.
|
||||
_MatLike: TypeAlias = Incomplete
|
||||
|
||||
useOpenCV: Final[bool]
|
||||
PILLOW_VERSION: Final[tuple[int, int, int]]
|
||||
RUNNING_PYTHON_2: Final = False
|
||||
GRAYSCALE_DEFAULT: Final = False
|
||||
scrotExists: Final[bool]
|
||||
SCROT_EXISTS: Final[bool]
|
||||
GNOMESCREENSHOT_EXISTS: Final[bool]
|
||||
|
||||
if sys.platform == "linux":
|
||||
RUNNING_X11: Final[bool]
|
||||
RUNNING_WAYLAND: Final[bool]
|
||||
|
||||
# Meant to be overridable as a setting
|
||||
GRAYSCALE_DEFAULT: bool
|
||||
# Meant to be overridable for backward-compatibility
|
||||
USE_IMAGE_NOT_FOUND_EXCEPTION: bool
|
||||
|
||||
@@ -173,7 +181,16 @@ def pixelMatchesColor(
|
||||
x: int, y: int, expectedRGBColor: tuple[int, int, int] | tuple[int, int, int, int], tolerance: int = 0
|
||||
) -> bool: ...
|
||||
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: ...
|
||||
|
||||
if sys.platform == "win32":
|
||||
def screenshot(
|
||||
imageFilename: StrOrBytesPath | None = None, region: tuple[int, int, int, int] | None = None, allScreens: bool = False
|
||||
) -> Image.Image: ...
|
||||
|
||||
else:
|
||||
def screenshot(
|
||||
imageFilename: StrOrBytesPath | None = None, region: tuple[int, int, int, int] | None = None
|
||||
) -> Image.Image: ...
|
||||
|
||||
# _locateAll_opencv
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user