You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and since the package name and @PythonModule are then identical, it can be shortened to just
package safeds.data.image.containers
To Reproduce
Create stubs for Safe-DS (adjust the source path): safe-ds-stubgen -o "out" -nc -s "../library/src" --docstyle NUMPYDOC -v
Open out/safeds/data/image/containers/_image/image.sdsstub
Expected behavior
The class name should not be part of the package name.
For internal modules, no stubs should be created, i.e. the @PythonModule should never include parts that begin with an underscore. In this case, the class Image is reexported, so naturally stubs should still be created, but under a different package/Python module.
Screenshots (optional)
No response
Additional Context (optional)
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
The package names and
@PythonModule
annotations of the created stubs are wrong. For example, the stub for theImage
class ofSafe-DS
starts withIt should instead be
and since the package name and
@PythonModule
are then identical, it can be shortened to justTo Reproduce
safe-ds-stubgen -o "out" -nc -s "../library/src" --docstyle NUMPYDOC -v
out/safeds/data/image/containers/_image/image.sdsstub
Expected behavior
@PythonModule
should never include parts that begin with an underscore. In this case, the classImage
is reexported, so naturally stubs should still be created, but under a different package/Python module.Screenshots (optional)
No response
Additional Context (optional)
No response
The text was updated successfully, but these errors were encountered: