Skip to content

Fix Warnings in Python >= 3.14: Explicitly set _layout_ to 'ms' in ctypes structs#97

Open
lobroc wants to merge 1 commit into
ismrmrd:masterfrom
lobroc:master
Open

Fix Warnings in Python >= 3.14: Explicitly set _layout_ to 'ms' in ctypes structs#97
lobroc wants to merge 1 commit into
ismrmrd:masterfrom
lobroc:master

Conversation

@lobroc
Copy link
Copy Markdown

@lobroc lobroc commented Jun 4, 2026

Since Python 3.14, one should explicitly set layout to 'ms' in any ctypes Structure objects defining pack. Defaulting to 'ms' was implicit behaviour before, but now raises a warning.
This simple patch defines layout for all objects giving warnings on import.

Closes #96

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.

Deprecation warnings on module import

1 participant