Skip to content

Commit 8cca52f

Browse files
committed
MAINT: Remove dep on matplotlib
1 parent 4854107 commit 8cca52f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pandas-stubs/_typing.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ from typing import (
2323
Union,
2424
)
2525

26-
import matplotlib.ticker
2726
import numpy as np
2827
from numpy import typing as npt
2928
from pandas.core.arrays import ExtensionArray
@@ -40,6 +39,8 @@ from pandas._libs.tslibs import (
4039

4140
from pandas.core.dtypes.dtypes import ExtensionDtype
4241

42+
from pandas.io.formats.format import EngFormatter
43+
4344
ArrayLike = Union[ExtensionArray, np.ndarray]
4445
AnyArrayLike = Union[Index, Series, np.ndarray]
4546
PythonScalar = Union[str, bool, complex]
@@ -192,7 +193,7 @@ CompressionOptions = Optional[
192193
FormattersType = Union[
193194
list[Callable], tuple[Callable, ...], Mapping[Union[str, int], Callable]
194195
]
195-
FloatFormatType = str | Callable | matplotlib.ticker.EngFormatter
196+
FloatFormatType = str | Callable | EngFormatter
196197
# converters
197198
ConvertersArg = dict[Hashable, Callable[[Dtype], Dtype]]
198199

pandas-stubs/core/frame.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1999,7 +1999,7 @@ class DataFrame(NDFrame, OpsMixin):
19991999
def to_string(
20002000
self,
20012001
buf: FilePath | WriteBuffer[str],
2002-
columns: Sequence[_str] | None = ...,
2002+
columns: list[HashableT] | Index | Series | None = ...,
20032003
col_space: int | list[int] | dict[HashableT, int] | None = ...,
20042004
header: _bool | list[_str] | tuple[str, ...] = ...,
20052005
index: _bool = ...,
@@ -2022,7 +2022,7 @@ class DataFrame(NDFrame, OpsMixin):
20222022
def to_string(
20232023
self,
20242024
buf: None = ...,
2025-
columns: Sequence[_str] | None = ...,
2025+
columns: list[HashableT] | Index | None = ...,
20262026
col_space: int | list[int] | dict[Hashable, int] | None = ...,
20272027
header: _bool | Sequence[_str] = ...,
20282028
index: _bool = ...,

0 commit comments

Comments
 (0)