Rationale
Currently, the type stub package for Panda3D uses the panda3d.interrogatedb interface to programmatically generate .pyi files containing type information for Panda's C++ interfaces. Eventually, we hope to package these files alongside the main Panda3D package. Currently, however, the interrogate interface has some limitations that would make maintaining the stub generation scripts alongside the main package a burden.
Limitations
These are the limitations I've come across using panda3d.interrogatedb to generate type stubs. We can check items off the list as they're either addressed or determined to not be fixable or worth fixing.
Rationale
Currently, the type stub package for Panda3D uses the
panda3d.interrogatedbinterface to programmatically generate.pyifiles containing type information for Panda's C++ interfaces. Eventually, we hope to package these files alongside the main Panda3D package. Currently, however, the interrogate interface has some limitations that would make maintaining the stub generation scripts alongside the main package a burden.Limitations
These are the limitations I've come across using
panda3d.interrogatedbto generate type stubs. We can check items off the list as they're either addressed or determined to not be fixable or worth fixing.selfparameter is a bit vague. Usually, it's listed if it's present, but other times it isn't.__copy__and__deepcopy__methods added to it is a bit of a hassle.*args/**kwargsparameters.PyObject*has no information as to what kind of Python object it should be.