Skip to content

Commit

Permalink
update stub
Browse files Browse the repository at this point in the history
  • Loading branch information
Yikai-Liao committed Oct 2, 2024
1 parent 965428e commit f3da08b
Show file tree
Hide file tree
Showing 3 changed files with 2,635 additions and 1,400 deletions.
4 changes: 2 additions & 2 deletions generate_stub.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pip install . --user
nanobind-stubgen symusic.core --out .
rm symusic/core.pyi
mv symusic.core.pyi symusic/core.pyi
rm python/symusic/core.pyi
mv symusic.core.pyi python/symusic/core.pyi
#pip uninstall symusic
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ extend-select = [
]
"python/symusic/core.pyi" = [
"A003", # allow using filter as method name
"A002", # allow format as argument name
"F811", # the first overloaded function generated by nanobind has no @overload decorator
]
"symusic/soundfont.py" = [
"python/symusic/soundfont.py" = [
"T201", # print allowed
]
Loading

0 comments on commit f3da08b

Please sign in to comment.