From 67e00ff56ed1d5e1e014041e2e2e5216ac14b1b0 Mon Sep 17 00:00:00 2001 From: Martin Winkel Date: Thu, 5 Dec 2019 15:12:31 +0100 Subject: [PATCH] fix imports --- pandas/core/construction.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 1921e85ed9e46..b03c69d865301 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -48,8 +48,8 @@ import pandas.core.common as com if TYPE_CHECKING: - from pandas.core.series import Series - from pandas.core.index import Index + from pandas.core.series import Series # noqa: F401 + from pandas.core.index import Index # noqa: F401 def array( @@ -594,13 +594,13 @@ def is_empty_data(data: Any) -> bool: def create_series_with_explicit_dtype( data: Any = None, - index: Optional[Union[ArrayLike, Index]] = None, + index: Optional[Union[ArrayLike, "Index"]] = None, dtype: Optional[Dtype] = None, name: Optional[str] = None, copy: bool = False, fastpath: bool = False, dtype_if_empty: Dtype = object, -) -> Series: +) -> "Series": """ Helper to pass an explicit dtype when instantiating an empty Series.