Skip to content

Commit c6bfced

Browse files
committed
bump: version 0.19.1 → 0.19.2
1 parent 4decd3e commit c6bfced

File tree

4 files changed

+27
-23
lines changed

4 files changed

+27
-23
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
11

2+
<a id='changelog-0.19.2'></a>
3+
# 0.19.2 — 2025-01-15
4+
5+
## Fixed
6+
7+
- fixed a crash when you changed the snapshot to use a custom constructor method for dataclass/pydantic models.
8+
9+
example:
10+
``` python
11+
from inline_snapshot import snapshot
12+
from pydantic import BaseModel
13+
14+
15+
class A(BaseModel):
16+
a: int
17+
18+
@classmethod
19+
def from_str(cls, s):
20+
return cls(a=int(s))
21+
22+
23+
def test_something():
24+
assert A(a=2) == snapshot(A.from_str("1"))
25+
```
26+
227
<a id='changelog-0.19.1'></a>
328
# 0.19.1 — 2025-01-12
429

changelog.d/20250115_130342_15r10nk-git_fix_pydantic_ai_errors.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ keywords = []
3434
name = "inline-snapshot"
3535
readme = "README.md"
3636
requires-python = ">=3.8"
37-
version = "0.19.1"
37+
version = "0.19.2"
3838

3939
[project.optional-dependencies]
4040
black = [

src/inline_snapshot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"Snapshot",
1919
]
2020

21-
__version__ = "0.19.1"
21+
__version__ = "0.19.2"

0 commit comments

Comments
 (0)