Skip to content

Conversation

@loicdiridollou
Copy link
Member

  • Closes Update ty once UnionType is fixed #1484
  • Tests added (Please use assert_type() to assert the type of any return value)
  • If I used AI to develop this pull request, I prompted it to follow AGENTS.md.

A little bit of work on this one, needed to add some ignores but I think this should be good.

@cmp0xff cmp0xff mentioned this pull request Nov 30, 2025
2 tasks
Copy link
Contributor

@cmp0xff cmp0xff left a comment

Choose a reason for hiding this comment

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

Just one comment.

Copy link
Contributor

@cmp0xff cmp0xff left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thank you @loicdiridollou ! Also happy to see ty being less experimental and becoming closer to pyright and mypy.

@cmp0xff cmp0xff merged commit 2448b5f into pandas-dev:main Nov 30, 2025
16 checks passed
cmp0xff added a commit that referenced this pull request Dec 1, 2025
* GH1432 Partial resolution

* GH1432 PR Feedback

* type Index methods: putmask, asof, asof_locs, sort_values, get_indexer_non_unique, get_indexer_for, map, get_slice_bound (#1505)

* type Index methods: putmask, asof, asof_locs, sort_values, get_indexer_non_unique, get_indexer_for, map, get_slice_bound

* remove redundant `IntervalIndexer.get_indexer_non_unique`

* slice_locs can return either `np.integer` or `int`

* fix slice_locs test

* Apply suggestions from code review

Co-authored-by: Yi-Fan Wang <cmp0xff@users.noreply.github.com>

* np.integer -> np.intp

* test more mask types for `putmask`

* Apply suggestions from code review

Co-authored-by: Yi-Fan Wang <cmp0xff@users.noreply.github.com>

* test asof with str

---------

Co-authored-by: Yi-Fan Wang <cmp0xff@users.noreply.github.com>

* GH1432 PR Feedback

* FIX: #1508 numpy 1darrays in tests (#1512)

fix: #1508 numpy arrays in tests

* GH1484 Upgrade ty (#1509)

* GH1484 Upgrade ty

* GH1484 Fix formatting

* GH1484 Update PR

* GH1432 Partial resolution

* GH1432 PR Feedback

* Update tests/test_timefuncs.py

Co-authored-by: Yi-Fan Wang <cmp0xff@users.noreply.github.com>

---------

Co-authored-by: Marco Edward Gorelli <33491632+MarcoGorelli@users.noreply.github.com>
Co-authored-by: Yi-Fan Wang <cmp0xff@users.noreply.github.com>
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.

Update ty once UnionType is fixed

2 participants