Skip to content

Conversation

@alexrudd2
Copy link
Collaborator

Explicitly add | None to remove ~11 errors with mypy.no_explicit_optional = True.

CommParams is a dataclass, and consumers of this class either
(1) Have default values that will stand in for None
(2) Totally ignore the values (for instance, serial ignore TCP params, and vice versa)

Thanks to @MAKOMO

@janiversen janiversen merged commit 1c37fe9 into dev Oct 17, 2023
@janiversen janiversen deleted the typing-CommParams branch October 17, 2023 07:01
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants