mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-25 01:38:40 +08:00
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:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user