Skip to content

Ship _core.pyi type stubs (v1.0.2)#5

Merged
jcschaff merged 1 commit into
mainfrom
core-pyi-stubs
Jun 24, 2026
Merged

Ship _core.pyi type stubs (v1.0.2)#5
jcschaff merged 1 commit into
mainfrom
core-pyi-stubs

Conversation

@jcschaff

Copy link
Copy Markdown
Member

Summary

  • Generate a PEP 484 type stub for the compiled pyvcell_mbsolver._core extension using pybind11-stubgen, giving type checkers (mypy/Pyright) full signatures and docstrings for the C++ API. Complements the py.typed marker from 1.0.1.
  • The stub (python/pyvcell_mbsolver/_core.pyi) is assembled into the build tree alongside __init__.py/py.typed and installed into the wheel via the python component.
  • Bump version 1.0.1 → 1.0.2.

Generation

PYTHONPATH=<build>/bin pybind11-stubgen pyvcell_mbsolver._core --output-dir <out>

Generated cleanly (no warnings); covers all 21 public members — enums, classes, methods, and module functions with their docstrings.

Verified locally

Built a 1.0.2 wheel and confirmed it contains pyvcell_mbsolver/_core.pyi (plus py.typed, __init__.py, _core*.so); the stub parses as valid Python.

Maintenance note

The stub is committed (not regenerated in CI), so it should be refreshed with pybind11-stubgen if the _core bindings in python/pyvcellmbsolver.cpp change.

🤖 Generated with Claude Code

Generate a PEP 484 stub for the compiled pyvcell_mbsolver._core extension with
pybind11-stubgen, giving type checkers full signatures + docstrings for the
C++ API (complements the py.typed marker added in 1.0.1). The stub is
assembled into the build tree alongside __init__.py/py.typed and installed
into the wheel via the python component.

Bump project version 1.0.1 -> 1.0.2.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jcschaff jcschaff merged commit d3f570c into main Jun 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant