Skip to content

Commit a412ef2

Browse files
committed
TYP: Use Self for type checking
1 parent 707dda0 commit a412ef2

File tree

6 files changed

+216
-221
lines changed

6 files changed

+216
-221
lines changed

pandas/core/frame.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@
231231
ReadBuffer,
232232
Renamer,
233233
Scalar,
234+
Self,
234235
SortKind,
235236
StorageOptions,
236237
Suffixes,
@@ -5008,7 +5009,7 @@ def align(
50085009
limit: int | None = None,
50095010
fill_axis: Axis = 0,
50105011
broadcast_axis: Axis | None = None,
5011-
) -> tuple[DataFrame, NDFrameT]:
5012+
) -> tuple[Self, NDFrameT]:
50125013
return super().align(
50135014
other,
50145015
join=join,

0 commit comments

Comments
 (0)