Skip to content

Fix type-var for idx in Series.loc.__setitem__(...)#1670

Merged
cmp0xff merged 4 commits intopandas-dev:mainfrom
Azureblade3808:patch-1
Feb 12, 2026
Merged

Fix type-var for idx in Series.loc.__setitem__(...)#1670
cmp0xff merged 4 commits intopandas-dev:mainfrom
Azureblade3808:patch-1

Conversation

@Azureblade3808
Copy link
Contributor

@Azureblade3808 Azureblade3808 commented Feb 10, 2026

Fixes #1669 .

  • Closes Wrong key type in Series.loc.__setitem__ #1669 (Replace xxxx with the Github issue number)
  • 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.

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.

Could you add a test to verify your changes? Maybe in test_series_loc_setitem in test_indexing.py.

Co-authored-by: Yi-Fan Wang <cmp0xff@users.noreply.github.com>
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. Thank you @Azureblade3808 !

@cmp0xff cmp0xff merged commit c2b80ff into pandas-dev:main Feb 12, 2026
14 checks passed
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.

Wrong key type in Series.loc.__setitem__

2 participants