Skip to content

Commit 9d8ccf0

Browse files
authored
feat(bindings/python)!: Generate stubs for Operator overloads and Scheme (#6729)
* add services module with PyScheme * ensure python 3.10 compatibility file.pyi * Add new service base * add config to docstrings * fix * Add overloads to operators * remove and replace files * overloads to use pyscheme directly * overloads to use pyscheme directly * Add Scheme to overloads * Add returns section to overloads * update doc style
1 parent c481a6d commit 9d8ccf0

File tree

14 files changed

+9092
-1175
lines changed

14 files changed

+9092
-1175
lines changed

bindings/python/justfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ clean:
5454
[group('build')]
5555
stub-gen: setup
5656
@echo "{{ BOLD }}--- Generating Python type stubs ---{{ NORMAL }}"
57+
@cargo run --quiet --manifest-path=../../dev/Cargo.toml -- generate -l python
5758
@cargo run --quiet --bin stub_gen
5859
@echo "{{ BOLD }}--- Formatting and fixing generated stubs ---{{ NORMAL }}"
5960
-@bash -c 'shopt -s globstar; uv run ruff check **/*.pyi --fix --unsafe-fixes --silent || true'

bindings/python/mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ plugins:
3434
python:
3535
paths: [python]
3636
options:
37-
docstring_style: google
37+
docstring_style: numpy
3838

3939
nav:
4040
- Overview: index.md

0 commit comments

Comments
 (0)