mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 22:54:42 +00:00
Remove autogenerated docs/rules/*.md
files (#2917)
This commit is contained in:
parent
c9c199dbca
commit
e5179f67fd
1 changed files with 0 additions and 26 deletions
|
@ -1,26 +0,0 @@
|
||||||
# deprecated-type-alias (NPY001)
|
|
||||||
|
|
||||||
Autofix is always available.
|
|
||||||
|
|
||||||
## What it does
|
|
||||||
Checks for deprecated NumPy type aliases.
|
|
||||||
|
|
||||||
## Why is this bad?
|
|
||||||
NumPy's `np.int` has long been an alias of the builtin `int`. The same
|
|
||||||
goes for `np.float`, `np.bool`, and others. These aliases exist
|
|
||||||
primarily primarily for historic reasons, and have been a cause of
|
|
||||||
frequent confusion for newcomers.
|
|
||||||
|
|
||||||
These aliases were been deprecated in 1.20, and removed in 1.24.
|
|
||||||
|
|
||||||
## Examples
|
|
||||||
```python
|
|
||||||
import numpy as np
|
|
||||||
|
|
||||||
np.bool
|
|
||||||
```
|
|
||||||
|
|
||||||
Use instead:
|
|
||||||
```python
|
|
||||||
bool
|
|
||||||
```
|
|
Loading…
Add table
Add a link
Reference in a new issue