Skip to content

silx.gui.plot3d.scene: Added typing#4560

Open
t20100 wants to merge 1 commit intomainfrom
plot3d-add-typing
Open

silx.gui.plot3d.scene: Added typing#4560
t20100 wants to merge 1 commit intomainfrom
plot3d-add-typing

Conversation

@t20100
Copy link
Copy Markdown
Member

@t20100 t20100 commented Mar 27, 2026

PR summary

This PR adds typing to 2 modules of plot3d.scene.
This was initiated by sphinx-build warnings (see #4559) and aimed at fixing it while typing the project.

Not need for v3.0.0 release.

AI Disclosure

  • No AI used
  • AI tool(s) ... used for ...

@t20100 t20100 requested a review from a team March 27, 2026 10:16
@t20100 t20100 self-assigned this Mar 27, 2026
Copy link
Copy Markdown
Member

@loichuder loichuder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay to me.

Optionally, we could introduce a Mat4 type for the return type of all mat4 function. It would be an alias for numpy.ndarray for now but would be handy in case we want to strengthen the typing at some point.

@t20100
Copy link
Copy Markdown
Member Author

t20100 commented Mar 27, 2026

we could introduce a Mat4

👍 and a Vector4 as well for quaternions and homogeneous coordinates.

I'll rework it accordingly.

@t20100 t20100 force-pushed the plot3d-add-typing branch from ab62839 to ddef494 Compare March 27, 2026 11:04
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.

2 participants