Skip to content

eds: Style and type fixes around build_variable()#661

Merged
friederschueler merged 4 commits intocanopen-python:masterfrom
acolomb:eds-build-variable-restyle
May 7, 2026
Merged

eds: Style and type fixes around build_variable()#661
friederschueler merged 4 commits intocanopen-python:masterfrom
acolomb:eds-build-variable-restyle

Conversation

@acolomb
Copy link
Copy Markdown
Member

@acolomb acolomb commented May 7, 2026

This essentially fixes the outstanding style issues I noted in #655, slightly cleaning up that module.

acolomb added 4 commits May 7, 2026 10:34
Pass object type to build_variable() instead of the boolean is_domain
parameter.  Add type hints to aid in validating all call sites have
been adjusted.
The storage_location attribute needs an explicit annotation (assumed
only None type) on the OD variable classes, to accept strings from
eds.

Silence mypy in import_eds() for a custom attribute addition.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 2026

Codecov Report

❌ Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
canopen/objectdictionary/eds.py 90.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@friederschueler friederschueler merged commit a4e61d7 into canopen-python:master May 7, 2026
4 of 5 checks passed
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