Skip to content

Commit 0d50817

Browse files
authored
enable reportUnusedImport (#136)
* enable reportUnusedImport * enable reportIncompatibleMethodOverride; instead of basic+subset of strict, use strict and disable checks that don't pass
1 parent 20d79f1 commit 0d50817

37 files changed

+27
-123
lines changed

pandas-stubs/_config/config.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ from contextlib import ContextDecorator
22
from typing import (
33
Any,
44
Literal,
5-
Union,
65
overload,
76
)
87

pandas-stubs/_libs/tslibs/nattype.pyi

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ from datetime import (
33
timedelta,
44
tzinfo as _tzinfo,
55
)
6-
from typing import (
7-
Any,
8-
Union,
9-
)
6+
from typing import Union
107

118
import numpy as np
129

pandas-stubs/_libs/tslibs/offsets.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@ from datetime import (
55
timedelta,
66
)
77
from typing import (
8-
TYPE_CHECKING,
98
Any,
109
Collection,
1110
Literal,
12-
Tuple,
1311
TypeVar,
14-
Union,
1512
overload,
1613
)
1714

pandas-stubs/_libs/tslibs/timestamps.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import numpy as np
1616

1717
from pandas._libs.tslibs import (
1818
BaseOffset,
19-
NaTType,
2019
Period,
2120
Tick,
2221
Timedelta,

pandas-stubs/_testing/__init__.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from typing import (
2-
Any,
32
List,
43
Literal,
54
Optional,

pandas-stubs/_typing.pyi

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,19 @@ from io import (
77
)
88
from mmap import mmap
99
from os import PathLike
10-
from pathlib import Path
11-
import sys
1210
from typing import (
1311
IO,
1412
Any,
1513
AnyStr,
1614
Callable,
17-
Collection,
1815
Dict,
1916
Hashable,
2017
List,
2118
Literal,
2219
Mapping,
23-
NewType,
2420
Optional,
2521
Protocol,
2622
Sequence,
27-
Tuple,
2823
Type,
2924
TypeVar,
3025
Union,

pandas-stubs/compat/pickle_compat.pyi

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
import pickle as pkl
22
from typing import Optional
33

4-
from pandas import (
5-
DataFrame,
6-
Index,
7-
Series,
8-
)
9-
104
def load_reduce(self) -> None: ...
115
def load_newobj(self) -> None: ...
126
def load_newobj_ex(self) -> None: ...

pandas-stubs/core/algorithms.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ from typing import (
99
import numpy as np
1010
from pandas.core.indexes.base import Index
1111

12-
from pandas.core.dtypes.generic import ABCIndex
13-
1412
def unique(values): ...
1513

1614
unique1d = unique

pandas-stubs/core/arraylike.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ from typing import (
66

77
from pandas import DataFrame
88

9-
from pandas._typing import FrameOrSeries
10-
119
class OpsMixinProtocol(Protocol): ...
1210

1311
class OpsMixin:

pandas-stubs/core/arrays/interval.pyi

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ from pandas._libs.interval import (
1010
Interval as Interval,
1111
IntervalMixin as IntervalMixin,
1212
)
13-
from pandas._typing import (
14-
Axis,
15-
Scalar,
16-
)
13+
from pandas._typing import Axis
1714

1815
from pandas.core.dtypes.generic import ABCExtensionArray as ABCExtensionArray
1916

0 commit comments

Comments
 (0)