mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[robotpy] Fixup problems during stubgen (#8781)
Part of the `semiwrap` process that hasn't been ported over yet is generating pyi stubs. It is possible to not have your semiwrap setup correctly and "leak" native types into the generated python docstrings, which causes the process to [fail](https://github.com/pjreiniger/mostrobotpy/actions/runs/24618640845/job/71985311682#step:12:3652). semiwrap also has a tool you can run, 'create-imports' that will read the symbols from a build pybind library and automatically create and sort the imports in the `__init__.py` file. This step is not enforced by CI, which is why it hasn't been failing in `mostrobotpy` land. This PR fixes the stubgen problems and runs reorganizes the imports. I will have a follow up PR that can bring these automatically into the build system after this lands. I'd do a fancy new `gh stack` but I can't figure out if it works on forks.
This commit is contained in:
@@ -4,6 +4,7 @@ from . import _init__wpiutil
|
||||
from ._wpiutil import (
|
||||
Color,
|
||||
Color8Bit,
|
||||
PixelFormat,
|
||||
Sendable,
|
||||
SendableBuilder,
|
||||
SendableRegistry,
|
||||
@@ -15,6 +16,7 @@ from ._wpiutil import (
|
||||
__all__ = [
|
||||
"Color",
|
||||
"Color8Bit",
|
||||
"PixelFormat",
|
||||
"Sendable",
|
||||
"SendableBuilder",
|
||||
"SendableRegistry",
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# autogenerated by 'semiwrap create-imports wpiutil.sync wpiutil._wpiutil.sync'
|
||||
from .._wpiutil.sync import (
|
||||
makeEvent,
|
||||
makeSemaphore,
|
||||
createSignalObject,
|
||||
destroyEvent,
|
||||
destroySemaphore,
|
||||
destroySignalObject,
|
||||
makeEvent,
|
||||
makeSemaphore,
|
||||
releaseSemaphore,
|
||||
resetEvent,
|
||||
resetSignalObject,
|
||||
@@ -16,12 +16,12 @@ from .._wpiutil.sync import (
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"makeEvent",
|
||||
"makeSemaphore",
|
||||
"createSignalObject",
|
||||
"destroyEvent",
|
||||
"destroySemaphore",
|
||||
"destroySignalObject",
|
||||
"makeEvent",
|
||||
"makeSemaphore",
|
||||
"releaseSemaphore",
|
||||
"resetEvent",
|
||||
"resetSignalObject",
|
||||
|
||||
Reference in New Issue
Block a user