Skip to content

Commit 55ea10d

Browse files
committed
use frameorseries instead of ndframe for typing
1 parent b956d2a commit 55ea10d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pandas/io/formats/info.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
import sys
2-
from typing import IO, TYPE_CHECKING, Optional, Union
2+
from typing import IO, Optional, Union
33

44
from pandas._config import get_option
55

66
from pandas.io.formats import format as fmt
77
from pandas.io.formats.printing import pprint_thing
88

9-
if TYPE_CHECKING:
10-
from pandas.core.generic import NDFrame
11-
9+
from pandas._typing import FrameOrSeries
1210

1311
def _put_str(s, space):
1412
return str(s)[:space].ljust(space)
1513

1614

1715
def info(
18-
data: NDFrame,
16+
data: FrameOrSeries,
1917
verbose: Optional[bool] = None,
2018
buf: Optional[IO[str]] = None,
2119
max_cols: Optional[int] = None,

0 commit comments

Comments
 (0)