mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 20:31:32 +08:00
Third-party stubs: Improve several __exit__ methods (#7575)
This commit is contained in:
@@ -119,7 +119,7 @@ class Image:
|
||||
@property
|
||||
def size(self) -> tuple[int, int]: ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __exit__(self, *args: Any) -> None: ...
|
||||
def __exit__(self, *args: object) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
def __array__(self, dtype=...) -> Any: ... # returns numpy.array()
|
||||
|
||||
@@ -41,7 +41,7 @@ class Parser:
|
||||
decode: Any
|
||||
def feed(self, data) -> None: ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __exit__(self, *args: Any) -> None: ...
|
||||
def __exit__(self, *args: object) -> None: ...
|
||||
def close(self) -> Image: ...
|
||||
|
||||
class PyCodecState:
|
||||
|
||||
Reference in New Issue
Block a user