Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork258
UNSET values inrepr are extremely verbose#825
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Is your feature request related to a problem? Please describe. This makes debugging much more challenging. Describe the solution you'd like Describe alternatives you've considered Additional context |
BetaWas this translation helpful?Give feedback.
All reactions
👍 2
Replies: 3 comments
-
Relevant PEP is still a draft, so, we'll be stuck with |
BetaWas this translation helpful?Give feedback.
All reactions
-
Maybe it's possible to rely on pydantics unset? |
BetaWas this translation helpful?Give feedback.
All reactions
-
A sentinal will be useful later, but defining classUnset:def__bool__(self)->Literal[False]:returnFalsedef__str__(self)->str:return"<UNSET>"def__repr__(self)->str:return"UNSET" |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #463 on August 13, 2023 01:59.