Skip to content

Fix: parsing ATTRIBUTE-DEFINITION-REAL default values#210

Merged
stanislaw merged 2 commits into
strictdoc-project:mainfrom
simonas-drauksas-sensmetry:fix/real-default-as-integer
Apr 9, 2026
Merged

Fix: parsing ATTRIBUTE-DEFINITION-REAL default values#210
stanislaw merged 2 commits into
strictdoc-project:mainfrom
simonas-drauksas-sensmetry:fix/real-default-as-integer

Conversation

@simonas-drauksas-sensmetry

Copy link
Copy Markdown
Contributor

When parsing an ATTRIBUTE-DEFINITION-REAL attribute that had a DEFAULT-VALUE, the parser was looking for an ATTRIBUTE-VALUE-INTEGER child element instead of ATTRIBUTE-VALUE-REAL. This caused an assertion failure whenever a real-typed attribute definition included a default value.

This fix corrects the tag name. A unit test covering this case is also added.

@stanislaw

Copy link
Copy Markdown
Contributor

Hey @simonas-drauksas-sensmetry, thanks for contributing!

Let me resolve the mypy issue later this evening as it is not related to your patch. I will merge your change after it.

@simonas-drauksas-sensmetry

Copy link
Copy Markdown
Contributor Author

Let me resolve the mypy issue later this evening as it is not related to your patch. I will merge your change after it.

Ah, I had just ran the git push as your comment came through. I can revert the commit if you'd like to keep it in a separate MR.

@stanislaw
stanislaw merged commit 8008c88 into strictdoc-project:main Apr 9, 2026
9 checks passed
@stanislaw

Copy link
Copy Markdown
Contributor

I will check another issue later today (#209), and should be able to release a new Pip right away.

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.

2 participants