Skip to content

Refactor XML namespace handling in BaseXmlModel and add test, resolve…#316

Open
falkben wants to merge 1 commit into
dapper91:masterfrom
falkben:fix_subclass_model_namespace
Open

Refactor XML namespace handling in BaseXmlModel and add test, resolve…#316
falkben wants to merge 1 commit into
dapper91:masterfrom
falkben:fix_subclass_model_namespace

Conversation

@falkben
Copy link
Copy Markdown

@falkben falkben commented Apr 23, 2026

resolves #315

Regression was introduced in bb30d8b which replaced a simple inherit-by-reference with an in-place parent_nsmap.update(nsmap or {}). That mutates the parent class's (and, in issue #315, the module-level shared) nsmap dict.

This PR was developed with the assistance of Cursor. I've reviewed and verified the changes.

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.

Subclassing a model with a different namespace map causes errors

1 participant