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

Run dataclass' original __post_init__ before validation #560

Merged
merged 3 commits into from May 29, 2019
Merged

Run dataclass' original __post_init__ before validation #560

merged 3 commits into from May 29, 2019

Conversation

HeavenVolkoff
Copy link
Contributor

@HeavenVolkoff HeavenVolkoff commented May 28, 2019

Change Summary

Change _pydantic_post_init to execute dataclass' original __post_init__ before validation

Related issue number

#557

Checklist

  • Unit tests for the changes exist
  • Tests pass on CI and coverage remains at 100%
  • Documentation reflects the changes where applicable
  • HISTORY.rst has been updated
    • if this is the first change since a release, please add a new section
    • include the issue number or this pull request number #<number>
    • include your github username @<whomever>

@codecov
Copy link

codecov bot commented May 28, 2019

Codecov Report

Merging #560 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #560   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          15     15           
  Lines        2457   2457           
  Branches      488    488           
=====================================
  Hits         2457   2457

Copy link
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

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

LGTM, no need for docs change but please update HISTORY.rst

@HeavenVolkoff
Copy link
Contributor Author

LGTM, no need for docs change but please update HISTORY.rst

Done. Thanks for reviewing it.

@samuelcolvin samuelcolvin merged commit 79ed78f into pydantic:master May 29, 2019
gangefors added a commit to gangefors/pydantic that referenced this pull request May 31, 2019
* upstream/master: (138 commits)
  add 'none-any.whl' to pypi upload (pydantic#564)
  uprev
  update benchmarks (pydantic#563)
  cython (pydantic#548)
  Fix issue with unspecified generic type (pydantic#554)
  Run dataclass' original __post_init__ before validation (pydantic#560)
  try to stop annoying warnings in azure pipeline (pydantic#549)
  azure pipeline failOnStderr: false
  Azure Pipelines - tests for windows (pydantic#538)
  Fix JSON Schema for list, tuple, and set, improving interoperability (pydantic#540)
  uprev.
  Colors (pydantic#516)
  Fix to schema generation for IPv{4,6}{Address,Interface,Network} (pydantic#532)
  Fix __fields_set__ not using alias field names (pydantic#517) (pydantic#518)
  Change return type hint for create_model (pydantic#526)
  Tuple ellipsis (pydantic#512)
  Fix to schema generation for IPvAny{Address,Interface,Network} (pydantic#498) (pydantic#510)
  uprev
  Scheduled monthly dependency update for May (pydantic#499)
  Implement const keyword in Schema. (pydantic#469)
  ...
alexdrydew pushed a commit to alexdrydew/pydantic that referenced this pull request Dec 23, 2023
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