Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typing bug in merge_vertices function #2281

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

ayersb
Copy link
Contributor

@ayersb ayersb commented Sep 4, 2024

Small typing bug that got flagged by pyright when my team updated trimesh recently.

The python typing for a few arguments is Optional[bool] when it should be Optional[int] based on the type comments and downstream code.

@mikedh mikedh changed the base branch from main to fix/scene September 4, 2024 17:47
@mikedh mikedh merged commit ea05d2f into mikedh:fix/scene Sep 4, 2024
9 checks passed
@mikedh
Copy link
Owner

mikedh commented Sep 4, 2024

Thanks for the fix!! I also added the corrected hints to trimesh.grouping.merge_vertices and updated the type to trimesh.typed.Integer which includes numpy.int64 in addition to Python int etc in c5b9a6b

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