Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use typing.NamedTuple for pseudo family configurations #111

Merged
merged 1 commit into from
Dec 9, 2021

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Dec 9, 2021

The SsspConfiguration and PseudoDojoConfiguration tuples were
defined using collections.namedtuple. These are replaced by using
typing.NamedTuple which not only provides type hints for the members
but it allows to define the __str__ method, which makes it easier to
use the configuration in formatted strings.

The `SsspConfiguration` and `PseudoDojoConfiguration` tuples were
defined using `collections.namedtuple`. These are replaced by using
`typing.NamedTuple` which not only provides type hints for the members
but it allows to define the `__str__` method, which makes it easier to
use the configuration in formatted strings.
@sphuber sphuber force-pushed the fix/use-typed-named-tuple branch from 907dc42 to 8fdd7e7 Compare December 9, 2021 13:00
@sphuber sphuber merged commit 252c68f into master Dec 9, 2021
@sphuber sphuber deleted the fix/use-typed-named-tuple branch December 9, 2021 13:05
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.

1 participant