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
Either at construction time or at value retrieval time, some values may need conversion. Examples include date(time)s and binary blobs. Converters are easy to do (strptime / b64decode?), the way to attach / register them and where to apply them requires some thinking.
The text was updated successfully, but these errors were encountered:
This also goes for values read from environment variables, these can only be strings. Can we determine a 'safe' way to auto-convert values like 'true' to a bool and '12345' to an int?
TOML (config language, used in proposed Pipfile thingy) seems to be using pattern matching, if a string matches an RFC 3339 date, it'll be a datetime instance. We could adopt a similar approach, or use YAML typing, which puts a strain on the user to explicitly type it as such.
Either at construction time or at value retrieval time, some values may need conversion. Examples include date(time)s and binary blobs. Converters are easy to do (
strptime
/b64decode
?), the way to attach / register them and where to apply them requires some thinking.The text was updated successfully, but these errors were encountered: