Skip to content

Commit 3e64378

Browse files
committed
Update readme/changelog.
1 parent 7066ccb commit 3e64378

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.6.0-dev
4+
5+
- Support for "path" casting for `$type`.
6+
37
## 0.5.0
48

59
- Move from `toml` to `tomli` for TOML parsing to allow using `tomllib` in standard library for Python > 3.11.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ALLOWED_HOSTS = [
2323
"127.0.0.1",
2424
]
2525

26-
# Values can be casted to a bool, int, str, float, decimal, datetime, date, time, timedelta, url
26+
# Values can be casted to a bool, int, str, float, decimal, datetime, date, time, timedelta, url, Path
2727
SITE_ID = { "$value" = "1", "$type" = "int" }
2828

2929
# This is an implicit dictionary and equivalent to `COLTRANE = { TITLE = "Example blog" }`
@@ -143,7 +143,7 @@ SITE_ID = { "$value" = 1 }
143143

144144
### Type
145145

146-
Casts the value to a particular type. Supported types: `bool`, `int`, `str`, `float`, `decimal`, `datetime`, `date`, `time`, `timedelta`, `url`. Especially helpful for values that come from environment variables which are usually read in as strings.
146+
Casts the value to a particular type. Supported types: `bool`, `int`, `str`, `float`, `decimal`, `datetime`, `date`, `time`, `timedelta`, `url`, and `Path`. Especially helpful for values that come from environment variables which are usually read in as strings.
147147

148148
`$type` can be used as an additional operator with any other operator.
149149

0 commit comments

Comments
 (0)