Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions docs/dev/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ See <https://docs.basedpyright.com/> for IDE integration and other info.

### mypy

Mypy is used for type-checking the codebase and the type-tests. It takes more effort to run it on the codebase than `basedpyright`.
This is primarily a consequence of mypy's inconsequent prioritization of the stubs bundled
with NumPy over the `numpy-stubs` within a local development environment.
To get around this, you can delete all `*.pyi` from your **local** `numpy` installation directory by running `uv tool/unstub.py`.
Mypy is used for type-checking the codebase and the type-tests.

**General Type Checking**

Expand Down
8 changes: 0 additions & 8 deletions tool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@ Test type stubs against actual implementations using MyPy's stubtest.
uv run tool/stubtest.py <OPTIONS>
```

## unstub.py

Remove all `.pyi` files from the NumPy site-packages directory.

```shell
uv run tool/unstub.py
```

## format_ignores.py

Format pyright ignore comments to ensure they are alphabetically sorted with proper spacing.
Expand Down
16 changes: 0 additions & 16 deletions tool/unstub.py

This file was deleted.

Loading