Skip to content

Conversation

cmp0xff
Copy link
Contributor

@cmp0xff cmp0xff commented Aug 1, 2025

Taking @loicdiridollou's idea from #1300 (comment)


check(assert_type(ts1, pd.Series), pd.Series)
check(assert_type(ts2, pd.Series), pd.Series)
check(assert_type(ts1, "pd.Series[int]"), pd.Series, np.int64)
Copy link
Member

Choose a reason for hiding this comment

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

In general I would recommend using np.integer, np.floating and np.complexfloating in those instances since those types are a little wider and don't rely only on 16/32/64 bits (same in the other places you have modified).
The rest looks good to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

one small change

cmp0xff added a commit to cmp0xff/pandas-stubs that referenced this pull request Aug 1, 2025
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 7fb03d4 into pandas-dev:main Aug 1, 2025
13 checks passed
@cmp0xff cmp0xff deleted the feature/cmp0xff/concat-series-dtype branch August 1, 2025 15:30
@cmp0xff
Copy link
Contributor Author

cmp0xff commented Aug 1, 2025

Thanks @loicdiridollou for the idea and @Dr-Irv for the review 😄

Dr-Irv pushed a commit that referenced this pull request Aug 1, 2025
* feat(series): #1098 arithmetic truediv

* fix(typing): __truediv__

* fix(typing): truediv

* fix(typing): __rtruediv__ and rtruediv

* fix(typing): div and rdiv

* fix(comment): ordering #1280 (review)

* fix(comment): #1302 (comment)

* fix(typing): truediv path

* fix(comment): ordering #1280 (review)
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.

concat does not respect Series.dtype

3 participants