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

Backport #768: Fix pydanitc create_model usage. #783

Merged
merged 2 commits into from
Apr 23, 2020

Conversation

lostella
Copy link
Contributor

@lostella lostella commented Apr 23, 2020

This backports #768 onto the v0.4.x branch.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Fixes awslabs#767

The `model_name` argument was renamed to `__model_name` in
[1367](pydantic/pydantic#1367).

This change ensure that our code works with both future and past
versions of pydantic.
@lostella lostella requested a review from jaheba April 23, 2020 07:10
@lostella lostella changed the title Backport: Fix pydanitc create_model usage. (#768) Backport: Fix pydanitc create_model usage. Apr 23, 2020
@lostella lostella changed the title Backport: Fix pydanitc create_model usage. Backport #768: Fix pydanitc create_model usage. Apr 23, 2020
@codecov-io
Copy link

codecov-io commented Apr 23, 2020

Codecov Report

Merging #783 into v0.4.x will increase coverage by 39.23%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           v0.4.x     #783       +/-   ##
===========================================
+ Coverage   43.23%   82.47%   +39.23%     
===========================================
  Files         149      149               
  Lines        8678     8678               
===========================================
+ Hits         3752     7157     +3405     
+ Misses       4926     1521     -3405     
Impacted Files Coverage Δ
src/gluonts/core/component.py 87.34% <ø> (+31.01%) ⬆️
src/gluonts/dataset/artificial/_base.py 35.96% <0.00%> (+0.87%) ⬆️
src/gluonts/core/exception.py 62.50% <0.00%> (+2.08%) ⬆️
src/gluonts/model/trivial/constant.py 76.92% <0.00%> (+11.53%) ⬆️
src/gluonts/dataset/artificial/recipe.py 74.00% <0.00%> (+12.75%) ⬆️
src/gluonts/kernels/_kernel_output.py 87.09% <0.00%> (+12.90%) ⬆️
src/gluonts/model/npts/_estimator.py 100.00% <0.00%> (+14.28%) ⬆️
src/gluonts/model/seasonal_naive/_estimator.py 100.00% <0.00%> (+14.28%) ⬆️
src/gluonts/model/forecast.py 72.12% <0.00%> (+14.60%) ⬆️
src/gluonts/dataset/stat.py 96.32% <0.00%> (+15.44%) ⬆️
... and 89 more

@lostella lostella merged commit 99a7380 into awslabs:v0.4.x Apr 23, 2020
@lostella lostella added the backport This PR backports changes to old releases label May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport This PR backports changes to old releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants