Skip to content

Use fields.Raw instead of fields.Field for Pika port - #219

Merged
ndevenish merged 1 commit into
mainfrom
marshmallow-raw-field
Nov 6, 2026
Merged

ndevenish merged 1 commit into
mainfrom
marshmallow-raw-field

Conversation

@ndevenish

@ndevenish ndevenish commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Marshmallow 3.24 deprecated instantiating the base fields.Field, so importing workflows.util.zocalo.configuration raised ChangedInMarshmallow4Warning. The Pika schema's port now uses fields.Raw, which behaves the same: it accepts any value without conversion.

Checked by importing the module with -W error on marshmallow 3.x: the warning fires before this change and not after. Marshmallow 4 doesn't warn either way.

Fixes #188.

Marshmallow 3.24 deprecated instantiating the base Field class, raising
ChangedInMarshmallow4Warning on import. fields.Raw is the equivalent
untyped field.

Fixes #188.
@ndevenish
ndevenish force-pushed the marshmallow-raw-field branch from 71ec170 to 5c2f3af Compare November 6, 2026 14:28
@ndevenish
ndevenish enabled auto-merge (squash) November 6, 2026 14:29
@ndevenish
ndevenish merged commit 640dccb into main Nov 6, 2026
13 checks passed
@ndevenish
ndevenish deleted the marshmallow-raw-field branch November 6, 2026 14:29
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.

Marsmallow 3.24.0 deprecates construction of Field

1 participant