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
@@ -1,12 +1,11 @@
from _typeshed import Unused
from collections.abc import Sequence
from ctypes import _CVoidConstPLike
from typing import TypeVar
from typing_extensions import TypeAlias
from d3dshot.capture_output import CaptureOutput
from PIL import Image
_Unused: TypeAlias = object
_ImageT = TypeVar("_ImageT", bound=Image.Image)
class PILCaptureOutput(CaptureOutput):
@@ -22,4 +21,4 @@ class PILCaptureOutput(CaptureOutput):
rotation: int,
) -> Image.Image: ...
def to_pil(self, frame: _ImageT) -> _ImageT: ...
def stack(self, frames: Sequence[_ImageT], stack_dimension: _Unused) -> Sequence[_ImageT]: ...
def stack(self, frames: Sequence[_ImageT], stack_dimension: Unused) -> Sequence[_ImageT]: ...