Skip to content

Commit 0954e4b

Browse files
committed
fix: pyproject tomli
1 parent 54d203e commit 0954e4b

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)