Remove bare Incomplete annotations in third-party stubs (#11671)

This commit is contained in:
Sebastian Rittau
2024-03-30 18:34:51 -07:00
committed by GitHub
parent 6cb57b5f26
commit 33de88879f
33 changed files with 76 additions and 99 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ class PdfStream:
def __init__(self, dictionary, buf) -> None: ...
def decode(self): ...
def pdf_repr(x: Incomplete) -> bytes: ...
def pdf_repr(x) -> bytes: ...
class PdfParser:
filename: Incomplete
+2 -2
View File
@@ -11,9 +11,9 @@ class PyAccess(_PixelAccessor):
image: Incomplete
def __init__(self, img, readonly: bool = False) -> None: ...
def __setitem__(self, xy: tuple[int, int], color) -> None: ...
def __getitem__(self, xy: tuple[int, int]) -> Incomplete: ...
def __getitem__(self, xy: tuple[int, int]): ...
def putpixel(self, xy: tuple[int, int], color) -> None: ...
def getpixel(self, xy: tuple[int, int]) -> Incomplete: ...
def getpixel(self, xy: tuple[int, int]): ...
def check_xy(self, xy: tuple[int, int]): ...
class _PyAccess32_2(PyAccess):
+4 -4
View File
@@ -17,10 +17,10 @@ class _PixelAccessor(Protocol): # noqa: Y046
#
# This protocol describes that interface.
# TODO: should the color args and getter return types be _Color?
def __setitem__(self, xy: tuple[int, int], color: Incomplete, /) -> None: ...
def __getitem__(self, xy: tuple[int, int], /) -> Incomplete: ...
def putpixel(self, xy: tuple[int, int], color: Incomplete, /) -> None: ...
def getpixel(self, xy: tuple[int, int], /) -> Incomplete: ...
def __setitem__(self, xy: tuple[int, int], color, /) -> None: ...
def __getitem__(self, xy: tuple[int, int], /): ...
def putpixel(self, xy: tuple[int, int], color, /) -> None: ...
def getpixel(self, xy: tuple[int, int], /): ...
class _Path:
def __getattr__(self, item: str) -> Incomplete: ...