- install
pybind11-stubgen
- run
pybind11-stubgen _humanleague
- copy
stubs/_humanleague/__init__.pyi
tohumanleague
- edit the file:
-
delete the line
import _humanleague
-
import numpy.typing and edit numpy types as necessary. The following definitions are also useful:
FloatArray1d = npt.NDArray[np.float64] | list[float] IntArray1d = typing.Sequence[int]
-
move misplaced docstrs for overloaded functions/methods as necessary
-
replace
__version__ = ...
with__version__: str
-