Skip to content

Commit

Permalink
Replace tomli with tomllib for Python 3.11 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
MAYANK12SHARMA committed Feb 28, 2025
1 parent e92eaa7 commit ba0b7c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_metadata.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import tomli
import tomllib
import open_data_pvnet


Expand All @@ -8,7 +8,7 @@ def test_version_consistency():
"""
# Read version from pyproject.toml
with open("pyproject.toml", "rb") as f:
pyproject_data = tomli.load(f)
pyproject_data = tomllib.load(f)
pyproject_version = pyproject_data["project"]["version"]

# Read version from the __init__.py file
Expand Down

0 comments on commit ba0b7c2

Please sign in to comment.