Skip to content

GMTParameterError: Pass a list rather than a set to ensure parameter order do not change#4390

Merged
seisman merged 2 commits intomainfrom
exception/iterable
Feb 6, 2026
Merged

GMTParameterError: Pass a list rather than a set to ensure parameter order do not change#4390
seisman merged 2 commits intomainfrom
exception/iterable

Conversation

@seisman
Copy link
Member

@seisman seisman commented Feb 6, 2026

set in Python is not ordered. So, the parameter order in the error message cannot be predicted, which makes tests difficult.

>>> {"c", "d", "a"}
{'a', 'c', 'd'}

This PR replaces sets with lists instead.

Patches #4374, #4380, #4383.

@seisman seisman added this to the 0.19.0 milestone Feb 6, 2026
@seisman seisman added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog labels Feb 6, 2026
@seisman seisman merged commit 430c834 into main Feb 6, 2026
19 of 23 checks passed
@seisman seisman deleted the exception/iterable branch February 6, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments