Bump black to 23.1.0 (#9647)

This commit is contained in:
Alex Waygood
2023-02-01 14:06:04 +00:00
committed by GitHub
parent 7cd7ae46c0
commit 8e7b78a8e8
24 changed files with 11 additions and 55 deletions

View File

@@ -23,7 +23,7 @@ _Size: TypeAlias = tuple[int, int]
_Box: TypeAlias = tuple[int, int, int, int]
_ConversionMatrix: TypeAlias = Union[
tuple[float, float, float, float], tuple[float, float, float, float, float, float, float, float, float, float, float, float],
tuple[float, float, float, float], tuple[float, float, float, float, float, float, float, float, float, float, float, float]
]
# `str` values are only accepted if mode="RGB" for an `Image` object
# `float` values are only accepted for certain modes such as "F"

View File

@@ -178,6 +178,7 @@ 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(

View File

@@ -1,7 +1,6 @@
import sys
if sys.platform == "win32":
from . import win32
class WinColor:

View File

@@ -58,7 +58,6 @@ _ValueOrNative: TypeAlias = bool | float | str | Value
_ValueOrInt: TypeAlias = Value | int
class Value:
address: Value
is_optimized_out: bool
type: Type
@@ -120,7 +119,6 @@ class Value:
def lookup_type(name: str, block: Block = ...) -> Type: ...
class Type:
alignof: int
code: int
dynamic: bool
@@ -144,7 +142,6 @@ class Type:
def optimized_out(self) -> Value: ...
class Field:
bitpos: int
enumval: int
name: str | None
@@ -204,7 +201,6 @@ pretty_printers: list[_PrettyPrinterLookupFunction]
# Filtering Frames
class _FrameFilter(Protocol):
name: str
enabled: bool
priority: int
@@ -507,7 +503,6 @@ def lookup_static_symbol(name: str, domain: int = ...) -> Symbol | None: ...
def lookup_static_symbols(name: str, domain: int = ...) -> list[Symbol]: ...
class Symbol:
type: Type | None
symtab: Symtab
line: int
@@ -551,7 +546,6 @@ SYMBOL_LOC_COMMON_BLOCK: int
# Symbol tables
class Symtab_and_line:
symtab: Symtab
pc: int
last: int
@@ -560,7 +554,6 @@ class Symtab_and_line:
def is_valid(self) -> bool: ...
class Symtab:
filename: str
objfile: Objfile
producer: str

View File

@@ -4,7 +4,6 @@ import gdb
from gdb import _PrettyPrinterLookupFunction
class PrettyPrinter:
name: str
subprinters: list[SubPrettyPrinter] | None
enabled: bool
@@ -13,7 +12,6 @@ class PrettyPrinter:
def __call__(self, val: gdb.Value) -> gdb._PrettyPrinter | None: ...
class SubPrettyPrinter:
name: str
enabled: bool

View File

@@ -6,9 +6,9 @@ version: str
def global_init(option: int) -> None: ...
def global_cleanup() -> None: ...
def version_info() -> tuple[
int, str, int, str, int, str, int, str, tuple[str, ...], Incomplete | None, int, Incomplete | None
]: ...
def version_info() -> (
tuple[int, str, int, str, int, str, int, str, tuple[str, ...], Incomplete | None, int, Incomplete | None]
): ...
class error(Exception): ...