Skip to content

Commit 1d610ca

Browse files
committed
Update ewm.py
1 parent 6bbe77e commit 1d610ca

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pandas/core/window/ewm.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import datetime
44
from functools import partial
55
from textwrap import dedent
6+
from typing import TYPE_CHECKING
67
import warnings
78

89
import numpy as np
@@ -20,10 +21,12 @@
2021
from pandas.core.dtypes.common import is_datetime64_ns_dtype
2122
from pandas.core.dtypes.missing import isna
2223

23-
from pandas import (
24-
DataFrame,
25-
Series,
26-
)
24+
if TYPE_CHECKING:
25+
from pandas import (
26+
DataFrame,
27+
Series,
28+
)
29+
2730
import pandas.core.common as common # noqa: PDF018
2831
from pandas.core.util.numba_ import maybe_use_numba
2932
from pandas.core.window.common import zsqrt

0 commit comments

Comments
 (0)