Skip to content

Commit f669c10

Browse files
GH1269 Add more changes
1 parent 310daef commit f669c10

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

pandas-stubs/io/common.pyi

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from types import TracebackType
12
from typing import (
23
IO,
34
AnyStr,
@@ -9,9 +10,14 @@ from pandas._typing import CompressionDict
910
class IOHandles(Generic[AnyStr]):
1011
handle: IO[AnyStr]
1112
compression: CompressionDict
12-
created_handles: list[IO[AnyStr]]
13-
is_wrapped: bool
13+
created_handles: list[IO[AnyStr]] = ...
14+
is_wrapped: bool = ...
1415
def close(self) -> None: ...
1516
def __enter__(self) -> IOHandles[AnyStr]: ...
16-
def __exit__(self, *args: object) -> None: ...
17+
def __exit__(
18+
self,
19+
exc_type: type[BaseException] | None,
20+
exc_value: BaseException | None,
21+
traceback: TracebackType | None,
22+
) -> None: ...
1723
def __init__(self, handle, compression, created_handles, is_wrapped) -> None: ...

pandas-stubs/io/pytables.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class HDFStore:
122122
exc_value: BaseException | None,
123123
traceback: TracebackType | None,
124124
) -> None: ...
125-
def keys(self) -> list[str]: ...
125+
def keys(self, include=...) -> list[str]: ...
126126
def __iter__(self) -> Iterator[str]: ...
127127
def open(self, mode: Literal["a", "w", "r", "r+"] = ..., **kwargs) -> None: ...
128128
def close(self) -> None: ...

0 commit comments

Comments
 (0)