pandas-dev / pandas

Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
https://pandas.pydata.org
BSD 3-Clause "New" or "Revised" License
43.86k stars 18.01k forks source link

DOC: Missing type hint for squeeze method #60384

Open JessJohn0 opened 4 days ago

JessJohn0 commented 4 days ago

Pandas version checks

Location of the documentation

https://github.com/pandas-dev/pandas/blob/main/pandas/core/generic.py

Documentation problem

The squeeze method is missing a type hint.

Suggested fix for documentation

Adding a type hint to the squeeze method to be consistent with the rest of the code.

KevsterAmp commented 4 days ago

Can confirm, specifically this line: https://github.com/pandas-dev/pandas/blob/1c986d6213904fd7d9acc5622dc91d029d3f1218/pandas/core/generic.py#L841