Upload hf_env/lib/python3.14/site-packages/pandas/_libs/tslibs/tzconversion.pyi with huggingface_hub
Browse files
hf_env/lib/python3.14/site-packages/pandas/_libs/tslibs/tzconversion.pyi
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from collections.abc import Iterable
|
| 2 |
+
from datetime import (
|
| 3 |
+
timedelta,
|
| 4 |
+
tzinfo,
|
| 5 |
+
)
|
| 6 |
+
|
| 7 |
+
import numpy as np
|
| 8 |
+
|
| 9 |
+
from pandas._typing import npt
|
| 10 |
+
|
| 11 |
+
# tz_convert_from_utc_single exposed for testing
|
| 12 |
+
def tz_convert_from_utc_single(
|
| 13 |
+
utc_val: np.int64, tz: tzinfo, creso: int = ...
|
| 14 |
+
) -> np.int64: ...
|
| 15 |
+
def tz_localize_to_utc(
|
| 16 |
+
vals: npt.NDArray[np.int64],
|
| 17 |
+
tz: tzinfo | None,
|
| 18 |
+
ambiguous: str | bool | Iterable[bool] | None = ...,
|
| 19 |
+
nonexistent: str | timedelta | np.timedelta64 | None = ...,
|
| 20 |
+
creso: int = ..., # NPY_DATETIMEUNIT
|
| 21 |
+
) -> npt.NDArray[np.int64]: ...
|