-
-
Notifications
You must be signed in to change notification settings - Fork 154
GH1541 Revert Series[Any].__add__(str) #1542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4080,3 +4080,11 @@ def test_series_index_setter() -> None: | |
| check(assert_type(sr.index, pd.Index), pd.Index) | ||
| sr.index = [2, 3] | ||
| check(assert_type(sr.index, pd.Index), pd.Index) | ||
|
|
||
|
|
||
| def test_series_add_str() -> None: | ||
| """Test Series.__add__ with Series[Any].""" | ||
| df = pd.DataFrame({0: ["a", "b"]}) | ||
| sr = df[0] | ||
|
|
||
| check(assert_type(sr + "c1", pd.Series), pd.Series, str) | ||
|
Comment on lines
+4083
to
+4090
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Plesae move the new test to Probably we need to make the same valid tests in For consistency, we probably also need to make |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you create an overload that says if
other: _str, the result isSeries[str]?