You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tbh I think these types would even fit the main pydantic lib. The char type is classic and is a built-in in C & Java. The non empty string is also a great idea and would be super useful
I have found myself declaring simple string types a lot and thought it would be nice to have them here.
I suggest adding the following types:
NonEmptyString
to indicate some string cannot be emptyCharacter
type to indicate a string has length of exactly 1.What do you think? Is it too pedantic? Would you use these types?
The text was updated successfully, but these errors were encountered: