Add rna_type/bl_rna, GeometrySet, bpy.ops typing, publish task, and README updates

- Add rna_type and bl_rna as readonly properties on bpy_struct (fixes fake-bpy-module#419)
- Discover non-RNA C classes in bpy.types like GeometrySet (fixes fake-bpy-module#436)
- Introspect bpy.ops operator wrapper with poll(), idname(), get_rna_type(), bl_options
- Handle builtin name shadowing (e.g. bpy.ops.object) with builtins. qualification
- Add poe publish task for building and publishing to PyPI
- Update project URLs to Gitea, improve generated README, add disclaimer
- Fix f-string lint warning and type annotation for introspect_class

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-26 15:07:35 +01:00
co-authored by Claude Opus 4.6
parent 852a5de700
commit 6ea41f3b4d
6 changed files with 253 additions and 22 deletions
+18 -6
View File
@@ -95,6 +95,20 @@ bpystubgen generates stubs from Blender's Sphinx documentation, not from runtime
Blender 4.0 through 5.1. Each Blender version gets its own stub package version.
## Generating Stubs
To generate stubs for a specific Blender version, run:
```bash
uv run poe generate 5.1
```
This will automatically download the corresponding Blender executable and run the introspection and stub generation process. You can also type-check the generated stubs:
```bash
uv run poe typecheck-stubs 5.1
```
## Contributing
Pull requests are welcome. The project uses:
@@ -106,16 +120,14 @@ Pull requests are welcome. The project uses:
- `ruff` for linting
```bash
# Generate stubs for a specific version
uv run poe generate 5.1
# Type-check generated stubs
uv run poe typecheck-stubs 5.1
# Run all checks (format, lint, typecheck, tests)
uv run poe check
```
## Disclaimer
This project was vibe coded using [Claude](https://claude.ai) by Anthropic.
## License
[MIT](LICENSE)