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

#3234 exclude extra field when represent model #3241

Merged
merged 7 commits into from Dec 19, 2021

Conversation

COCOLMAN
Copy link
Contributor

@COCOLMAN COCOLMAN commented Sep 22, 2021

Change Summary

has been modified to exclude unpredictable "extra" fields from "repr"

Related issue number

fix #3234

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)
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

@COCOLMAN
Copy link
Contributor Author

please review

@COCOLMAN
Copy link
Contributor Author

I thought it was right to exclude "extra field".

Let me know if I'm thinking in a different direction from main

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.

thanks for this, good catch

changes/3234-cocolman.md Outdated Show resolved Hide resolved
pydantic/main.py Outdated Show resolved Hide resolved
@samuelcolvin
Copy link
Member

please update.

COCOLMAN and others added 2 commits December 9, 2021 18:56
Co-authored-by: Samuel Colvin <samcolvin@gmail.com>
Co-authored-by: Samuel Colvin <samcolvin@gmail.com>
@COCOLMAN
Copy link
Contributor Author

COCOLMAN commented Dec 9, 2021

updated

tests/test_main.py Outdated Show resolved Hide resolved
@samuelcolvin
Copy link
Member

HI @COCOLMAN you seem to have prevented me from contributing to your PR which means I can't fix the small issue in tests.

Please accept this change. In future it would be easier if you gave permissions to maintainers to contribute to your pull requests for situations exactly like this.

Co-authored-by: Samuel Colvin <samcolvin@gmail.com>
@COCOLMAN
Copy link
Contributor Author

Thx.

I will check Allow edits by maintainers next time

@samuelcolvin samuelcolvin merged commit c532e83 into pydantic:master Dec 19, 2021
@samuelcolvin
Copy link
Member

Thanks so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

when extra is allowed, representation is break
3 participants