Skip to content

Commit 0e6b377

Browse files
Bump speedate to v0.14.1 and prep for v0.20.1 (#1347)
1 parent b7fa254 commit 0e6b377

File tree

3 files changed

+27
-42
lines changed

3 files changed

+27
-42
lines changed

Cargo.lock

Lines changed: 15 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pydantic-core"
3-
version = "2.20.0"
3+
version = "2.20.1"
44
edition = "2021"
55
license = "MIT"
66
homepage = "https://github.com/pydantic/pydantic-core"
@@ -31,12 +31,12 @@ rust-version = "1.75"
3131
# but needs a bit of work to make sure it's not used in the codebase
3232
pyo3 = { version = "0.22.0", features = ["generate-import-lib", "num-bigint", "py-clone"] }
3333
regex = "1.10.4"
34-
strum = { version = "0.25.0", features = ["derive"] }
35-
strum_macros = "0.26.1"
34+
strum = { version = "0.26.3", features = ["derive"] }
35+
strum_macros = "0.26.4"
3636
serde_json = {version = "1.0.116", features = ["arbitrary_precision", "preserve_order"]}
3737
enum_dispatch = "0.3.13"
3838
serde = { version = "1.0.203", features = ["derive"] }
39-
speedate = "0.14.0"
39+
speedate = "0.14.4"
4040
smallvec = "1.13.2"
4141
ahash = "0.8.10"
4242
url = "2.5.0"

tests/validators/test_timedelta.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,16 @@ def test_timedelta_kwargs_strict():
195195

196196

197197
def test_invalid_constraint():
198-
with pytest.raises(SchemaError, match='timedelta.gt\n Input should be a valid timedelta, invalid digit in'):
198+
with pytest.raises(
199+
SchemaError,
200+
match='Invalid Schema:\ntimedelta.gt\n Input should be a valid timedelta, invalid character in hour',
201+
):
199202
validate_core_schema({'type': 'timedelta', 'gt': 'foobar'})
200203

201-
with pytest.raises(SchemaError, match='timedelta.le\n Input should be a valid timedelta, invalid digit in'):
204+
with pytest.raises(
205+
SchemaError,
206+
match='Invalid Schema:\ntimedelta.le\n Input should be a valid timedelta, invalid character in hour',
207+
):
202208
validate_core_schema({'type': 'timedelta', 'le': 'foobar'})
203209

204210

0 commit comments

Comments
 (0)