Closed
Description
(cc @zen-xu)
import pyarrow.parquet as pq
from pyarrow.parquet import core
_ = core.read_table # ok
_ = pq.read_table # not ok...
❯ pyright --version
pyright 1.1.397
❯ pyright test.py
test.py
test.py:6:8 - error: "read_table" is not a known attribute of module "pyarrow.parquet" (reportAttributeAccessIssue)
1 error, 0 warnings, 0 informations
Looks like pyright may stumble because of re-imports
This fails both with this project's pyright config
Lines 88 to 97 in 2f5b7ac
and with other (non-strict) configs as well.
Should the __all__
be added to pyarrow/parquet/__init__.pyi
? (unfortunately some duplication but then I think it should work)
Metadata
Metadata
Assignees
Labels
No labels