Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NameEmail equality comparison (#1527)
* Adding appropriate __eq__ method for NameEmail - Introducing new test assertions for NameEmail Signed-off-by: Stephen Bunn <stephen@bunn.io> * Adding change doc for NameEmail.__eq__ Signed-off-by: Stephen Bunn <stephen@bunn.io> * Update pydantic/networks.py Co-authored-by: Samuel Colvin <samcolvin@gmail.com> * Update tests/test_networks.py Co-authored-by: Samuel Colvin <samcolvin@gmail.com> * Fixing indentation issue left over from suggestion Signed-off-by: Stephen Bunn <stephen@bunn.io> Co-authored-by: Samuel Colvin <samcolvin@gmail.com>
- Loading branch information
1 parent
28c2ac7
commit 1eeb225
Showing
3 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add `NameEmail.__eq__` so duplicate `NameEmail` instances are evaluated as equal. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters