From b629b829cea4a863690df4e38f4500ff8aa8f8fe Mon Sep 17 00:00:00 2001 From: Ryan Nazareth Date: Fri, 3 Jan 2020 02:01:31 +0000 Subject: [PATCH] correct typing for is_copy arg --- pandas/core/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.