Skip to content

Commit f0135e8

Browse files
committed
Added type annotations to internal method
1 parent 2d4cf40 commit f0135e8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/core/frame.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -5731,7 +5731,12 @@ def diff(self, periods=1, axis=0):
57315731
# ----------------------------------------------------------------------
57325732
# Function application
57335733

5734-
def _gotitem(self, key, ndim, subset=None):
5734+
def _gotitem(self,
5735+
key, # type: Union[str, List[str]]
5736+
ndim, # type: int
5737+
subset=None # type: Union[Series, DataFrame, None]
5738+
):
5739+
# type: (...) -> Union[Series, DataFrame]
57355740
"""
57365741
sub-classes to define
57375742
return a sliced object

0 commit comments

Comments
 (0)