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

MAINT: have qn_domains-keys in Node/EdgeSettings be typed #292

Merged
merged 14 commits into from
Oct 18, 2024

Conversation

grayson-helmholz
Copy link
Contributor

In order to have more reliable type-checking the keys of the qn_domains-dictionary should be the types of the respective domains themselves. This avoids for example the use of wrong quantum numbers (EdgeQNs for a node, etc.)

Closes #281

@grayson-helmholz grayson-helmholz added the 🔨 Maintenance Maintenance and upkeep improvements label Oct 16, 2024
@grayson-helmholz grayson-helmholz changed the title MAINT: have qn_domains-keys in Node/EdgeSettings be the types of the resp. domain MAINT: have qn_domains-keys in Node/EdgeSettings be typed Oct 16, 2024
@grayson-helmholz
Copy link
Contributor Author

Hopefully merging of #289 will make it easier to have "CI / doc / nb" pass

docs/conf.py Outdated Show resolved Hide resolved
src/qrules/solving.py Show resolved Hide resolved
docs/conf.py Outdated Show resolved Hide resolved
docs/conf.py Outdated Show resolved Hide resolved
docs/conf.py Outdated Show resolved Hide resolved
docs/conf.py Outdated Show resolved Hide resolved
Copy link
Member

@redeboer redeboer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wunderbar 🙌

@redeboer redeboer marked this pull request as ready for review October 18, 2024 14:57
@grayson-helmholz grayson-helmholz merged commit f610cf9 into main Oct 18, 2024
16 checks passed
@grayson-helmholz grayson-helmholz deleted the qn_type_hints branch October 18, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 Maintenance Maintenance and upkeep improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specify key type of EdgeSettings.qn_domains and NodeSettings.qn_domains
2 participants