Skip to content

Commit

Permalink
fix: use tomli instead of toml (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
15r10nk committed Nov 7, 2024
1 parent 105d32c commit 2a63f47
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 3 deletions.
Empty file added changelog.d/.gitkeep
Empty file.
40 changes: 40 additions & 0 deletions changelog.d/20241107_083558_15r10nk-git_tomli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!--
A new scriv changelog fragment.
Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Removed
- A bullet item for the Removed category.
-->
<!--
### Added
- A bullet item for the Added category.
-->
### Changed

- use tomli instead of toml (#130)

<!--
### Deprecated
- A bullet item for the Deprecated category.
-->
<!--
### Fixed
- A bullet item for the Fixed category.
-->
<!--
### Security
- A bullet item for the Security category.
-->
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ dependencies = [
"click>=8.1.4",
"executing>=2.1.0",
"rich>=13.7.1",
"toml>=0.10.2; python_version < '3.11'",
"types-toml>=0.10.8.7; python_version < '3.11'",
"tomli>=2.0.0; python_version < '3.11'",
"typing-extensions"
]
description = "golden master/snapshot/approval testing library which puts the values right into your source code"
Expand Down
2 changes: 1 addition & 1 deletion src/inline_snapshot/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
if sys.version_info >= (3, 11):
from tomllib import loads
else:
from toml import loads
from tomli import loads


@dataclass
Expand Down

0 comments on commit 2a63f47

Please sign in to comment.