Add strictness emphasis to project and stubs README, add PyPI badges
Highlight basedpyright `all` mode and zero typing.Any as key differentiators in both the project README description and the per-version stubs README template. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
199bad568a
commit
7fde7f53da
23
README.md
23
README.md
@ -3,8 +3,9 @@
|
|||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
[](https://pypi.org/project/blender-python-stubs/)
|
||||||
|
|
||||||
Type stubs for the Blender Python API. Provides autocomplete, type checking, and inline documentation for `bpy`, `mathutils`, `bmesh`, `gpu`, `freestyle`, and all other Blender Python modules.
|
Strict type stubs for the Blender Python API. Provides autocomplete, type checking, and inline documentation for `bpy`, `mathutils`, `bmesh`, `gpu`, `freestyle`, and all other Blender Python modules. Generated stubs pass [basedpyright](https://docs.basedpyright.com) `all` mode with 0 errors and use zero `typing.Any`.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@ -14,16 +15,16 @@ pip install blender-python-stubs==5.1.0
|
|||||||
|
|
||||||
The version matches your target Blender version:
|
The version matches your target Blender version:
|
||||||
|
|
||||||
| Blender Version | Install Command |
|
| Blender Version | Install Command | PyPI |
|
||||||
| --------------- | ---------------------------------------------- |
|
| --------------- | ---------------------------------------------- | ---- |
|
||||||
| 5.1 | `pip install "blender-python-stubs>=5.1,<5.2"` |
|
| 5.1 | `pip install "blender-python-stubs>=5.1,<5.2"` | [](https://pypi.org/project/blender-python-stubs/5.1.0.1/) |
|
||||||
| 5.0 | `pip install "blender-python-stubs>=5.0,<5.1"` |
|
| 5.0 | `pip install "blender-python-stubs>=5.0,<5.1"` | [](https://pypi.org/project/blender-python-stubs/5.0.1.0/) |
|
||||||
| 4.5 | `pip install "blender-python-stubs>=4.5,<4.6"` |
|
| 4.5 | `pip install "blender-python-stubs>=4.5,<4.6"` | [](https://pypi.org/project/blender-python-stubs/4.5.8.1/) |
|
||||||
| 4.4 | `pip install "blender-python-stubs>=4.4,<4.5"` |
|
| 4.4 | `pip install "blender-python-stubs>=4.4,<4.5"` | |
|
||||||
| 4.3 | `pip install "blender-python-stubs>=4.3,<4.4"` |
|
| 4.3 | `pip install "blender-python-stubs>=4.3,<4.4"` | |
|
||||||
| 4.2 | `pip install "blender-python-stubs>=4.2,<4.3"` |
|
| 4.2 | `pip install "blender-python-stubs>=4.2,<4.3"` | |
|
||||||
| 4.1 | `pip install "blender-python-stubs>=4.1,<4.2"` |
|
| 4.1 | `pip install "blender-python-stubs>=4.1,<4.2"` | |
|
||||||
| 4.0 | `pip install "blender-python-stubs>=4.0,<4.1"` |
|
| 4.0 | `pip install "blender-python-stubs>=4.0,<4.1"` | |
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|||||||
6
main.py
6
main.py
@ -159,9 +159,11 @@ def build_generated_pyproject(
|
|||||||
README_TEMPLATE = """\
|
README_TEMPLATE = """\
|
||||||
# blender-python-stubs
|
# blender-python-stubs
|
||||||
|
|
||||||
Type stubs for Blender {blender_version} Python API.
|
[](https://pypi.org/project/blender-python-stubs/)
|
||||||
|
|
||||||
Provides autocomplete, type checking, and inline documentation for `bpy`, `mathutils`, `bmesh`, `gpu`, `freestyle`, and all other Blender Python modules.
|
Strict type stubs for Blender {blender_version} Python API.
|
||||||
|
|
||||||
|
Provides autocomplete, type checking, and inline documentation for `bpy`, `mathutils`, `bmesh`, `gpu`, `freestyle`, and all other Blender Python modules. Generated stubs pass [basedpyright](https://docs.basedpyright.com) `all` mode with 0 errors and use zero `typing.Any`.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user