-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TYP: Typing changes for ExtensionArray.astype #41251
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
dda21d1
TYP: Typing changes for ExtensionArray.astype
Dr-Irv da626a0
replace casts with type-ignore and update docs on astype
Dr-Irv e2f27f7
Merge remote-tracking branch 'upstream/master' into type_astype
Dr-Irv ed106fc
Change NpDtype
Dr-Irv 7de25ae
Merge branch 'master' into type_astype
Dr-Irv d9ef38f
doc changes. Use np.dtype(object)
Dr-Irv 1807fd2
merge with master
Dr-Irv e683efe
fix indentation in docstring
Dr-Irv ffee0e5
Merge remote-tracking branch 'upstream/master' into type_astype
Dr-Irv 4815ede
Merge remote-tracking branch 'upstream/master' into type_astype
Dr-Irv a61e7ae
add ExtensionDType argument
Dr-Irv 80d780e
Use npt.DTypeLike
Dr-Irv 5ce17cb
quotes around npt.DTypeLike
Dr-Irv 5d74047
Merge remote-tracking branch 'upstream/master' into type_astype
Dr-Irv 1f19758
Merge remote-tracking branch 'upstream/master' into type_astype
Dr-Irv a6d7ebe
Merge remote-tracking branch 'upstream/master' into type_astype
Dr-Irv 84777e6
Merge remote-tracking branch 'upstream/master' into type_astype
Dr-Irv 6a135f2
Merge remote-tracking branch 'upstream/master' into type_astype
Dr-Irv 9282e8e
Merge remote-tracking branch 'upstream/master' into type_astype
Dr-Irv 640f4bc
merge searchsorted and astype changes
Dr-Irv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
does this PR need to go in before #41203?
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.
No, they should be independent. Either can go first, and once one goes in, I can do the mypy check on the other.
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.
Would it make sense to use
NpDtype = npt.DTypeLike
to be consistent between numpy and pandas?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.
That's a big change, as it affects a lot more than just the
astype()
signature. The types are different: