diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 15cfc97fca690..0bcbf59914839 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3263,7 +3263,7 @@ def _clear_item_cache(self) -> None: # Indexing Methods def take( - self: FrameOrSeries, indices, axis=0, is_copy: bool_t = None, **kwargs + self: FrameOrSeries, indices, axis=0, is_copy: Optional[bool_t] = None, **kwargs ) -> FrameOrSeries: """ Return the elements in the given *positional* indices along an axis.