Skip to content

Commit aa2c442

Browse files
Merge pull request #30 from DiogoRibeiro7/fix/fix_another_import
fix: pyproject tomli
2 parents 54d203e + 0954e4b commit aa2c442

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/check_version_match.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
from pathlib import Path
44
import subprocess
55
import sys
6-
import tomli
6+
if sys.version_info >= (3, 11):
7+
import tomllib as tomli
8+
else:
9+
import tomli
710

811

912
ROOT = Path(__file__).resolve().parents[1]

0 commit comments

Comments
 (0)