Skip to content

Commit c57ff4a

Browse files
# type:ignore -> # type: ignore
1 parent 1a53ad7 commit c57ff4a

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

pandas/core/arrays/datetimelike.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# error: No library stub file for module 'pandas._libs.tslibs.timedeltas'
1212
from pandas._libs import NaT, NaTType, Timestamp, algos, iNaT, lib
1313
from pandas._libs.tslibs.c_timestamp import maybe_integer_op_deprecated # type: ignore
14-
from pandas._libs.tslibs.period import ( # type:ignore
14+
from pandas._libs.tslibs.period import ( # type: ignore
1515
DIFFERENT_FREQ,
1616
IncompatibleFrequency,
1717
Period,

pandas/core/dtypes/missing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
missing types & inference
33
"""
44
# error: No library stub file for module 'numpy'
5-
import numpy as np # type:ignore
5+
import numpy as np # type: ignore
66

77
from pandas._config import get_option
88

pandas/core/tools/timedeltas.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# error: No library stub file for module 'pandas._libs.tslibs.timedeltas'
1111
from pandas._libs.tslibs import NaT
12-
from pandas._libs.tslibs.timedeltas import ( # type:ignore
12+
from pandas._libs.tslibs.timedeltas import ( # type: ignore
1313
Timedelta,
1414
parse_timedelta_unit,
1515
)

pandas/io/clipboard/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def determine_clipboard():
7373
# applications using a single api call to either PyQt or PySide
7474
# https://pypi.org/project/QtPy
7575
# error: Cannot find module named 'qtpy'
76-
import qtpy # type:ignore # noqa
76+
import qtpy # type: ignore # noqa
7777
except ImportError:
7878
# If qtpy isn't installed, fall back on importing PyQt5, or PyQt5
7979
try:
@@ -82,7 +82,7 @@ def determine_clipboard():
8282
except ImportError:
8383
try:
8484
# error: No library stub file for module 'PyQt4'
85-
import PyQt4 # type:ignore # noqa
85+
import PyQt4 # type: ignore # noqa
8686
except ImportError:
8787
pass # fail fast for all non-ImportError exceptions.
8888
else:

pandas/io/formats/console.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def check_main():
6767

6868
try:
6969
# error: Name '__IPYTHON__' is not defined
70-
return __IPYTHON__ or check_main() # type:ignore # noqa
70+
return __IPYTHON__ or check_main() # type: ignore # noqa
7171
except NameError:
7272
return check_main()
7373

pandas/io/formats/format.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,9 @@ def base_formatter(v):
12751275
# error: Unexpected keyword argument "value" for "__call__" of
12761276
# "EngFormatter"
12771277
# error: "None" not callable
1278-
return float_format(value=v) if notna(v) else self.na_rep # type:ignore
1278+
return (
1279+
float_format(value=v) if notna(v) else self.na_rep # type: ignore
1280+
)
12791281

12801282
else:
12811283

pandas/util/_decorators.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import warnings
1717

1818
# error: No library stub file for module 'pandas._libs.properties'
19-
from pandas._libs.properties import cache_readonly # type:ignore # noqa
19+
from pandas._libs.properties import cache_readonly # type: ignore # noqa
2020

2121
FuncType = Callable[..., Any]
2222
F = TypeVar("F", bound=FuncType)

0 commit comments

Comments
 (0)