Chris Wesseling
Chris Wesseling
@zanieb Oh, sorry. I misunderstood the issue then. I thought this was the start of implementing pyenv functionality in uv. Which mise had already done.
You can remove 33% of your "boilerplate" by removing the second test: How can a `str` of length
In my use case I have an class attribute `data_type: type[T]` where T is bounded by `msgspec.Struct`, which can be a generic. But `isinstance` cannot take a parametrised generic, hence...
You can lower your "boilerplate" by encoding the length bounds in your pattern: `r"^[\w\-]{3,30}$"` or even better express what valid values are `r"^[a-z0-9\-]{3,30}$"` and reject invalid values. If you do...
Cool. Have a look at https://github.com/maykinmedia/open-beheer/blob/main/backend/src/openbeheer/api/drf_spectacular/schema.py. I think it's a lot simpler. I would appreciate your opinion if you think it's too simple.
@Jyckle Off the top of my head: My recent changes were to deal with the fact that annotations can either be the type object itself, or a forward ref. The...