apache / apache/arrow

[Python] When I import PyArrow and use Pyright linter CLI, it reports: Stub file not found for "pyarrow"

Open
#36,113 4 comments 0 reactions 0 assignees View on GitHub
Component: Python Type: usage
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 18h
Merged PRs (30d)
91

Description

### Describe the usage question you have. Please include as many useful details as possible.

When I import PyArrow and use Pyright linter CLI, it reports: Stub file not found for "pyarrow"

```python
from pyarrow import parquet as pq
# . . .
# some python code here
```

```bash
pyright main.py
```

**show this:**

```txt
Stub file not found for "pyarrow" (reportMissingTypeStubs)
```

By the way, `pyright` is a Type Checker for Python. See : `https://github.com/microsoft/pyright

Any suggestion to solve this?

Tanks.

### Component(s)

Python

Contributor guide

Open the contributing guide

Research direction

No repository file or test is named. Start with the PyArrow import and the `pyright main.py` command, then determine whether the package supplies type stubs; done would require a documented, reproducible resolution to `reportMissingTypeStubs`.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.