Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix duplicate calls to
__set_name__
for non-private attributes in `…
…BaseModel.__new__` (#4410) * fix: double call for public attrs, extend test * add changes * remove change file, update 4407 file
- Loading branch information
1 parent
d501c39
commit beb3e4c
Showing
3 changed files
with
23 additions
and
7 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 |
---|---|---|
@@ -1 +1 @@ | ||
Fix PEP487 protocol in `BaseModel`: call `__set_name__` on namespace values that implement the method. | ||
Fix PEP487 `__set_name__` protocol in `BaseModel` for PrivateAttrs. |
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