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 argument name collision #1367

Merged
merged 4 commits into from Apr 15, 2020
Merged

Conversation

kittipatv
Copy link
Contributor

@kittipatv kittipatv commented Apr 4, 2020

Change Summary

Renaming model_name argument of main.create_model() to __model_name to allow using model_name as a field name.

Related issue number

#1366

Checklist

  • Unit tests for the changes exist
  • Tests pass on CI and coverage remains at 100%
  • Documentation reflects the changes where applicable
  • changes/<pull request or issue id>-<github username>.md file added describing change
    (see changes/README.md for details)

@codecov
Copy link

codecov bot commented Apr 4, 2020

Codecov Report

Merging #1367 into master will not change coverage by %.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master     #1367   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines         3723      3723           
  Branches       735       735           
=========================================
  Hits          3723      3723           
Impacted Files Coverage Δ
pydantic/generics.py 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aaec3c9...5288e4b. Read the comment docs.

@samuelcolvin
Copy link
Member

LGTM, I'll do my best to get this merged when I next have time to go through PRs.

@samuelcolvin samuelcolvin merged commit c5af109 into pydantic:master Apr 15, 2020
@samuelcolvin
Copy link
Member

thanks so much, sorry again for the delay.

jaheba added a commit to jaheba/gluon-ts that referenced this pull request Apr 19, 2020
Fixes awslabs#767

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

This change ensure that our code works with both future and past
versions of pydantic.
jaheba added a commit to jaheba/gluon-ts that referenced this pull request Apr 19, 2020
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.
jaheba added a commit to awslabs/gluonts that referenced this pull request Apr 19, 2020
Fixes #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 pushed a commit to lostella/gluonts that referenced this pull request Apr 23, 2020
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 added a commit to awslabs/gluonts that referenced this pull request Apr 23, 2020
* Fix pydanitc `create_model` usage. (#768)

Fixes #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.

* fix style according to black==19.3b0

Co-authored-by: Jasper Schulz <schjaspe@amazon.de>
KimHeecheola added a commit to KimHeecheola/gluon-ts that referenced this pull request Nov 12, 2022
Fixes #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.
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