Skip to content

Commit cc390f5

Browse files
committed
CLN: Additional cleanups to pass tests
1 parent 79f56c2 commit cc390f5

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

pandas-stubs/_libs/tslibs/timestamps.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ class Timestamp(datetime):
3636
max: ClassVar[Timestamp]
3737

3838
resolution: ClassVar[Timedelta]
39-
value: int # np.int64
39+
value: int
4040
def __new__(
4141
cls: type[_DatetimeT],
4242
ts_input: np.integer | float | str | _date | datetime | np.datetime64 = ...,
43-
freq: str | BaseOffset | None = ...,
44-
tz: str | _tzinfo | tzfile | None = ...,
45-
unit: Literal["D", "h", "m", "s", "ms", "us", "ns"] | None = ...,
43+
freq: int | str | BaseOffset | None = ...,
44+
tz: str | _tzinfo | tzfile | int | None = ...,
45+
unit: str | int | None = ...,
4646
year: int | None = ...,
4747
month: int | None = ...,
4848
day: int | None = ...,

pandas-stubs/core/arrays/string_.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ class StringDtype(ExtensionDtype):
2323
class StringArray(PandasArray):
2424
def __init__(
2525
self,
26-
values: AnyArrayLike | Sequence[str | None | pd.NA | np.nan],
26+
# Also pd.NA and np.nan but not possible it seems
27+
values: AnyArrayLike | Sequence[str | None],
2728
copy: bool = ...,
2829
) -> None: ...
2930
def __arrow_array__(self, type=...): ...

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ tabulate = ">=0.8.10"
5959
jinja2 = "^3.1"
6060
scipy = ">=1.9.1"
6161
SQLAlchemy = "^1.4.41"
62+
types-python-dateutil = ">=2.8.19"
6263

6364
[build-system]
6465
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)