Skip to content

Conversation

@cmp0xff
Copy link
Contributor

@cmp0xff cmp0xff commented Dec 6, 2025

@cmp0xff cmp0xff changed the title FIX: #1519 #1524 dt descriptor TYP: #1519 #1524 dt descriptor Dec 6, 2025
@cmp0xff cmp0xff requested a review from Dr-Irv December 8, 2025 10:10
Comment on lines +66 to +73

check(
assert_type(df["ts"].dt.year, "Series[int]"), # type: ignore[assert-type]
Series,
np.integer,
)
check(
assert_type( # type: ignore[assert-type]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment here as to why we need the type: ignore with mypy ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added above: # python/mypy#19952: mypy gives Any. It is python/mypy#19952 which has unfortunately been closed.

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @cmp0xff

@Dr-Irv Dr-Irv merged commit 79e4b96 into pandas-dev:main Dec 8, 2025
16 checks passed
@cmp0xff cmp0xff deleted the bugfix/dt-accessor branch December 8, 2025 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression in 2.3.3.251201

2 participants