Skip to content

Conversation

matthewhughes934
Copy link
Contributor

@matthewhughes934 matthewhughes934 commented Jul 28, 2021

Change Summary

This adds more specific typing for the dictionaries in
ValidationError.errors(). This shouldn't introduce any functional
change.

Related issue number

Checklist

  • Unit tests for the changes exist
  • Tests pass on CI and coverage remains at 100%
  • Documentation reflects the changes where applicable (N/A)
  • 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

This adds more specific typing for the dictionaries in
`ValidationError.errors()`. This shouldn't introduce any functional
change.
@matthewhughes934 matthewhughes934 force-pushed the add-typeddict-for-error-object branch from 21115ea to 5480849 Compare July 28, 2021 12:09
@matthewhughes934 matthewhughes934 marked this pull request as ready for review July 28, 2021 12:10
@matthewhughes934
Copy link
Contributor Author

please review

Copy link
Collaborator

@PrettyWood PrettyWood left a comment

Choose a reason for hiding this comment

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

Thanks!

@PrettyWood PrettyWood force-pushed the add-typeddict-for-error-object branch from f7d4527 to 7871e84 Compare September 4, 2021 15:33
@PrettyWood PrettyWood merged commit e9327b8 into pydantic:master Sep 4, 2021
jpribyl pushed a commit to liquet-ai/pydantic that referenced this pull request Oct 7, 2021
* Add a TypedDict class for error objects

This adds more specific typing for the dictionaries in
`ValidationError.errors()`. This shouldn't introduce any functional
change.

* quotes

* split required and not required keys

* type but be a class

* workaround cython (can't wait for v3)

Co-authored-by: PrettyWood <em.jolibois@gmail.com>
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.

3 participants