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

Feature/improve computed states #2

Merged
merged 9 commits into from
Dec 13, 2024
Merged

Conversation

pLeminoq
Copy link
Owner

@pLeminoq pLeminoq commented Dec 13, 2024

Improve reactivity of states. Before depends_on could only be used with BasicStates. Now this is possible for any State. In addition, I added a new computed decorator, which directly adds results from the computation as attributes without the need to call the function.

I don't know how this can be typed yet. So, mypy is disabled for now.

@pLeminoq pLeminoq merged commit e32ccef into main Dec 13, 2024
1 check passed
@pLeminoq pLeminoq deleted the feature/improve_computed_states branch December 13, 2024 13:04
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