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

Prepare 0.14.2 #182

Merged
merged 4 commits into from
Mar 6, 2025
Merged

Prepare 0.14.2 #182

merged 4 commits into from
Mar 6, 2025

Conversation

aseyboldt
Copy link
Member

No description provided.

@aseyboldt aseyboldt requested a review from maresb March 6, 2025 11:42
@aseyboldt aseyboldt merged commit 3328f64 into pymc-devs:main Mar 6, 2025
8 checks passed
## [0.14.1] - 2025-03-05

### Ci

- Update run-on-arch to avoid segfault (Adrian Seyboldt)

- Repare 0.14.1 (Adrian Seyboldt)
Copy link
Contributor

Choose a reason for hiding this comment

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

typo

Copy link
Member Author

Choose a reason for hiding this comment

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

ups. Unfortunately it's autogenerated based on the commit message, so pretty much too late to change now :-(

if outer_kwargs is None:
outer_kwargs = {}

def make_adapter(*args, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

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

Mostly just a stylistic suggestion, but I think using partial here (like previously) is quite a bit better for static code analysis. Is it possible to import make_transform_adapter at the top of with_data, or does it actually need to be imported within make_adapter?

Copy link
Member Author

Choose a reason for hiding this comment

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

It needs to be imported late unfortunately.
I guess we could have a wrapper module that is empty if the optional dependency is not installed. Maybe that would be cleaner?

Copy link
Contributor

Choose a reason for hiding this comment

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

That does feel significantly cleaner to my tastes. That way you get separation between the import logic and the inner workings.

Copy link
Member Author

Choose a reason for hiding this comment

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

Made an issue: #184

if outer_kwargs is None:
outer_kwargs = {}

def make_adapter(*args, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

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

Other comment also applies here

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