Skip to content

Fix #608 (repr on model with class)#611

Merged
samuelcolvin merged 4 commits intopydantic:masterfrom
dmontagu:fix-repr
Jun 26, 2019
Merged

Fix #608 (repr on model with class)#611
samuelcolvin merged 4 commits intopydantic:masterfrom
dmontagu:fix-repr

Conversation

@dmontagu
Copy link
Copy Markdown
Contributor

@dmontagu dmontagu commented Jun 21, 2019

Change Summary

Handle the case where pydantic.utils.truncate is called on a type.

Related issue number

fix #608

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

Comment thread pydantic/utils.py Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 21, 2019

Codecov Report

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

@@          Coverage Diff          @@
##           master   #611   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          15     15           
  Lines        2613   2585   -28     
  Branches      516    510    -6     
=====================================
- Hits         2613   2585   -28

@dmontagu
Copy link
Copy Markdown
Contributor Author

Quotes linting in the build saved me, thanks again for adding this @samuelcolvin !

@samuelcolvin samuelcolvin merged commit ccdf8e1 into pydantic:master Jun 26, 2019
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.

Call repr on model with class type field will cause exception

2 participants