Skip to content

Commit fba7880

Browse files
jasonmokkmroeschke
authored andcommitted
DOC: Add type hint for squeeze method (pandas-dev#60415)
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 8a603c3 commit fba7880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ def pop(self, item: Hashable) -> Series | Any:
838838
return result
839839

840840
@final
841-
def squeeze(self, axis: Axis | None = None):
841+
def squeeze(self, axis: Axis | None = None) -> Scalar | Series | DataFrame:
842842
"""
843843
Squeeze 1 dimensional axis objects into scalars.
844844

0 commit comments

Comments
 (0)