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

rename QgsMeshRendererScalarSettings.DataResampling enum value from None to NoResampling #55999

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

alexbruy
Copy link
Contributor

Description

The QgsMeshRendererScalarSettings.DataResampling enum has a value None which seems does not work well with Python bingings as None is a reserved keyword in Python. Given that mesh API is still marked as experimental it should be safe to rename that value to NoResampling as suggested by @uclaros. This not only should fix the issue with Python bindings but also will make enum value more informative.

Fixes #51033.

@github-actions github-actions bot added this to the 3.36.0 milestone Jan 25, 2024
Copy link

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit d8e21a8)

@alexbruy alexbruy merged commit 79ccc22 into qgis:master Jan 26, 2024
33 checks passed
@alexbruy alexbruy deleted the mesh-renderer-settings-enum-fix branch January 26, 2024 07:15
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.

(api) Use of None in QgsMeshRendererScalarSettings raises Python issues
2 participants