Skip to content

Commit

Permalink
TYP: Use Self for type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
topper-123 committed Mar 13, 2023
1 parent 707dda0 commit a412ef2
Show file tree
Hide file tree
Showing 6 changed files with 216 additions and 221 deletions.
3 changes: 2 additions & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@
ReadBuffer,
Renamer,
Scalar,
Self,
SortKind,
StorageOptions,
Suffixes,
Expand Down Expand Up @@ -5008,7 +5009,7 @@ def align(
limit: int | None = None,
fill_axis: Axis = 0,
broadcast_axis: Axis | None = None,
) -> tuple[DataFrame, NDFrameT]:
) -> tuple[Self, NDFrameT]:
return super().align(
other,
join=join,
Expand Down
Loading

0 comments on commit a412ef2

Please sign in to comment.