Update Unused parameters in stubs/ (#9704)

* Update _Unused TypeAlias

* Update `object | None` params

* Replace unused `object` parameters with `Unused` alias
This commit is contained in:
Avasam
2023-02-22 02:52:52 -05:00
committed by GitHub
parent fbc092b4cd
commit 078c6a0958
33 changed files with 134 additions and 133 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
from _typeshed import SupportsWrite
from _typeshed import SupportsWrite, Unused
from .Image import Image
@@ -6,7 +6,7 @@ class PSDraw:
fp: SupportsWrite[bytes]
def __init__(self, fp: SupportsWrite[bytes] | None = ...) -> None: ...
isofont: dict[bytes, int]
def begin_document(self, id: object | None = ...) -> None: ...
def begin_document(self, id: Unused = None) -> None: ...
def end_document(self) -> None: ...
def setfont(self, font: str, size: int) -> None: ...
def line(self, xy0: tuple[int, int], xy1: tuple[int, int]) -> None: ...