Skip to content

Commit e444cc1

Browse files
committed
Liskov substitution principle
1 parent 628a00e commit e444cc1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stubs/D3DShot/d3dshot/capture_outputs/pil_capture_output.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ class PILCaptureOutput(CaptureOutput):
2121
rotation: int,
2222
) -> Image.Image: ...
2323
def to_pil(self, frame: _ImageT) -> _ImageT: ...
24-
def stack(self, frames: _ImageT, stack_dimension: _Unused) -> _ImageT: ...
24+
def stack(self, frames: _ImageT, stack_dimension: _Unused) -> _ImageT: ... # type: ignore[override]

stubs/D3DShot/d3dshot/capture_outputs/pytorch_capture_output.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ class PytorchCaptureOutput(CaptureOutput):
2424
rotation: int,
2525
) -> _Tensor: ...
2626
def to_pil(self, frame: _Tensor) -> Image.Image: ...
27-
def stack(self, frames: Sequence[_Tensor], stack_dimension: Literal["first", "last"]) -> _Tensor: ...
27+
def stack(self, frames: Sequence[_Tensor], stack_dimension: Literal["first", "last"]) -> _Tensor: ... # type: ignore[override]

0 commit comments

Comments
 (0)