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

API: support pytools 2.1 @fitted_only decorator #351

Merged
merged 7 commits into from
Sep 24, 2022

Conversation

j-ittner
Copy link
Member

@j-ittner j-ittner commented Sep 24, 2022

Update the facet code to use pytools' new @fitted_only decorator instead of calling ensure_fitted() from inside methods and properties.

Note that mypy 0.971 reports an error for decorated properties; this will be fixed in mypy 0.980. Until this new version is released, we add # type: ignore comments to the affected @property declarations.

@j-ittner j-ittner requested review from mtsokol and rkdy September 24, 2022 08:28
@j-ittner j-ittner merged commit 006d0c5 into 2.0.x Sep 24, 2022
@j-ittner j-ittner deleted the api/support_pytools_2.1_fitted_only branch September 24, 2022 19:34
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.

2 participants