Conversation
added 3 commits
April 1, 2026 10:47
…est mypy version release.
…ts. CHANGELOG.md updated as well.
pieterjbotma
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The latest Mypy version does not accept direct access to
dataclassobject values if they are not instantiated. Therefore, some issues were raised in three instrument drivers where this way of implementation was used. These implementations were now changed such that the dataclasses are now with default values for the problematic cases and they are instantiated with these default values.The unit-tests, which were testing the initial state of these dataclasses, were also adjusted to test the new default values. Other unit-tests which then make use of the dataclasses with non-default values, pass. The unit tests should be already defined such that these dataclasses are set during the tests, not patched to let any value pass.