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

fix(build_config): validation when NoneType #3187

Merged
merged 1 commit into from Nov 4, 2022

Conversation

aarnphm
Copy link
Member

@aarnphm aarnphm commented Nov 3, 2022

This PR ensures converter for our options handles NoneType when using bentoml.bentos.build

This PR also improve type annotations for BentoBuildConfig.__init__

Signed-off-by: Aaron Pham 29749331+aarnphm@users.noreply.github.com

Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
@aarnphm aarnphm requested a review from a team as a code owner November 3, 2022 23:25
@aarnphm aarnphm requested review from parano and sauyon and removed request for a team November 3, 2022 23:25
@codecov
Copy link

codecov bot commented Nov 3, 2022

Codecov Report

Merging #3187 (4fc5a2a) into main (0469d8a) will decrease coverage by 0.00%.
The diff coverage is 20.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3187      +/-   ##
==========================================
- Coverage   21.69%   21.68%   -0.01%     
==========================================
  Files         101      101              
  Lines        9731     9735       +4     
  Branches     1692     1694       +2     
==========================================
  Hits         2111     2111              
- Misses       7572     7576       +4     
  Partials       48       48              
Impacted Files Coverage Δ
src/bentoml/_internal/bento/build_config.py 33.69% <20.00%> (-0.38%) ⬇️

@aarnphm aarnphm merged commit aec7fa8 into bentoml:main Nov 4, 2022
@aarnphm aarnphm deleted the fix/validation-api-build-config branch November 4, 2022 00:03
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.

None yet

2 participants