|
82 | 82 | TimedeltaConvertibleTypes,
|
83 | 83 | TimeNonexistent,
|
84 | 84 | TimestampConvertibleTypes,
|
| 85 | + TimeUnit, |
85 | 86 | ValueKeyFunc,
|
86 | 87 | WriteBuffer,
|
87 | 88 | WriteExcelBuffer,
|
@@ -2284,7 +2285,7 @@ def to_json(
|
2284 | 2285 | date_format: str | None = None,
|
2285 | 2286 | double_precision: int = 10,
|
2286 | 2287 | force_ascii: bool_t = True,
|
2287 |
| - date_unit: str = "ms", |
| 2288 | + date_unit: TimeUnit = "ms", |
2288 | 2289 | default_handler: Callable[[Any], JSONSerializable] | None = None,
|
2289 | 2290 | lines: bool_t = False,
|
2290 | 2291 | compression: CompressionOptions = "infer",
|
@@ -2564,11 +2565,11 @@ def to_hdf(
|
2564 | 2565 | self,
|
2565 | 2566 | path_or_buf: FilePath | HDFStore,
|
2566 | 2567 | key: str,
|
2567 |
| - mode: str = "a", |
| 2568 | + mode: Literal["a", "w", "r+"] = "a", |
2568 | 2569 | complevel: int | None = None,
|
2569 |
| - complib: str | None = None, |
| 2570 | + complib: Literal["zlib", "lzo", "bzip2", "blosc"] | None = None, |
2570 | 2571 | append: bool_t = False,
|
2571 |
| - format: str | None = None, |
| 2572 | + format: Literal["fixed", "table"] | None = None, |
2572 | 2573 | index: bool_t = True,
|
2573 | 2574 | min_itemsize: int | dict[str, int] | None = None,
|
2574 | 2575 | nan_rep=None,
|
|
0 commit comments