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

Mypy for targets #54

Merged
merged 16 commits into from
Dec 15, 2023
Merged

Mypy for targets #54

merged 16 commits into from
Dec 15, 2023

Conversation

AdrianSosic
Copy link
Collaborator

@AdrianSosic AdrianSosic commented Dec 8, 2023

Enables mypy for the targets package (hence resolves #27) and fixes attributes along the way.

Most notably, renames bounds_transform_func target attribute to transform_mode and renames/moves the corresponding transform utilities for better code structure. Reason is that bounds_transform_func is misleading in two ways: the transforms are not really related to the bounds (they only use them) and the attribute doesn't refer to a callable but really to a transform "mode".

@AVHopp, @Scienfitz: The PR builds upon the existing #6 PR, so when looking at the diffs, make sure to select the correct base commit (in contrast to Azure, Github in fact offers this functionality 🥇)

@AdrianSosic AdrianSosic added the typing Typing related things label Dec 8, 2023
@AdrianSosic AdrianSosic added this to the Mypy milestone Dec 8, 2023
@AdrianSosic AdrianSosic self-assigned this Dec 8, 2023
@AdrianSosic AdrianSosic mentioned this pull request Dec 8, 2023
baybe/objective.py Show resolved Hide resolved
baybe/targets/enum.py Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
baybe/targets/numerical.py Outdated Show resolved Hide resolved
@AdrianSosic AdrianSosic merged commit 8d33196 into main Dec 15, 2023
7 checks passed
@AdrianSosic AdrianSosic deleted the mypy/targets branch December 15, 2023 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typing Typing related things
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mypy for targets
3 participants