These days writing a new library is sometimes faster than finding existing ones. So, I wrote a tiny cool sentinel Maybe[T] in #python
These days writing a new library is sometimes faster than finding existing ones. So, I wrote a tiny cool sentinel Maybe[T] in #python
@tikhonov_a there's already a MISSING sentinel in dataclasses, modelled after attrs.NOTHING. Consider re-exporting that?
As for patch operations, I usually use a TypedDict with total=False or NotRequired[T] fields. I find it works pretty well.