Skip to content

Commit f02a843

Browse files
committed
fix reportMissingTypeStubs error
1 parent 76fed11 commit f02a843

File tree

8 files changed

+5
-11
lines changed

8 files changed

+5
-11
lines changed

pandas-stubs/__init__.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ from pandas._config import (
9494
)
9595

9696
from pandas.util._print_versions import show_versions as show_versions
97-
from pandas.util._tester import test as test
9897

9998
from pandas.io.api import (
10099
ExcelFile as ExcelFile,

pandas-stubs/core/arrays/arrow/dtype.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import pyarrow as pa
1+
import pyarrow as pa # pyright: ignore[reportMissingTypeStubs]
22

33
from pandas._libs.missing import NAType
44

pandas-stubs/io/api.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ from pandas.io.excel import (
55
read_excel as read_excel,
66
)
77
from pandas.io.feather_format import read_feather as read_feather
8-
from pandas.io.gbq import read_gbq as read_gbq
98
from pandas.io.html import read_html as read_html
109
from pandas.io.json import read_json as read_json
1110
from pandas.io.orc import read_orc as read_orc

pandas-stubs/io/excel/_base.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ from typing import (
1212
overload,
1313
)
1414

15-
from odf.opendocument import OpenDocument
15+
from odf.opendocument import OpenDocument # pyright: ignore[reportMissingTypeStubs]
1616
from openpyxl.workbook.workbook import Workbook
1717
from pandas.core.frame import DataFrame
18-
import pyxlsb.workbook
18+
import pyxlsb.workbook # pyright: ignore[reportMissingTypeStubs]
1919
from typing_extensions import Self
2020
from xlrd.book import Book
2121

pandas-stubs/io/parsers/readers.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ from pandas._typing import (
3434
UsecolsArgType,
3535
)
3636

37-
from pandas.io.common import IOHandles
38-
3937
@overload
4038
def read_csv(
4139
filepath_or_buffer: FilePath | ReadCsvBuffer[bytes] | ReadCsvBuffer[str],
@@ -472,7 +470,6 @@ class TextFileReader(abc.Iterator):
472470
chunksize: int | None
473471
nrows: int | None
474472
squeeze: bool
475-
handles: IOHandles | None
476473
def __init__(
477474
self,
478475
f: FilePath | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | list,

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ enableTypeIgnoreComments = false # use pyright-specific ignores
240240
# disable subset of strict
241241
reportMissingParameterType = false
242242
reportMissingTypeArgument = false
243-
reportMissingTypeStubs = false
244243
reportUnnecessaryTypeIgnoreComment = true
245244
reportUnknownArgumentType = false
246245
reportUnknownLambdaType = false

tests/test_dtypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
BooleanArray,
2121
IntegerArray,
2222
)
23-
import pyarrow as pa
23+
import pyarrow as pa # pyright: ignore[reportMissingTypeStubs]
2424
from typing_extensions import assert_type
2525

2626
from pandas._typing import Scalar

tests/test_pandas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ def test_crosstab() -> None:
678678
def test_arrow_dtype() -> None:
679679
pytest.importorskip("pyarrow")
680680

681-
import pyarrow as pa
681+
import pyarrow as pa # pyright: ignore[reportMissingTypeStubs]
682682

683683
check(
684684
assert_type(

0 commit comments

Comments
 (0)