Skip to content

fix: return empty flat map when container appstruct is null#372

Open
santhreal wants to merge 8 commits into
Pylons:mainfrom
santhreal:fix/flatten-dropped-sequence
Open

fix: return empty flat map when container appstruct is null#372
santhreal wants to merge 8 commits into
Pylons:mainfrom
santhreal:fix/flatten-dropped-sequence

Conversation

@santhreal

@santhreal santhreal commented Jul 18, 2026

Copy link
Copy Markdown

Sequence.flatten hits TypeError when missing=drop sequence absent from appstruct. This PR fixes the regression with a focused test covering the case.

Mapping/Sequence/Tuple flatten assumed a real container when a
missing=drop child was absent from the appstruct, so SchemaNode.flatten
raised TypeError/AttributeError on colander.null (issue Pylons#299).
macos-latest is arm64; setup-python x64 builds abort under Rosetta/gettext.
setup-python has no pypy-3.8 x86 builds on Windows.
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.

1 participant