There was an error while loading. Please reload this page.
1 parent fb3d336 commit dfa89a3Copy full SHA for dfa89a3
1 file changed
scfw/package_managers/uv/temp_project.py
@@ -6,13 +6,17 @@
6
import logging
7
import shutil
8
import subprocess
9
-import tomllib
10
import uuid
11
from pathlib import Path
12
from tempfile import TemporaryDirectory
13
from types import TracebackType
14
from typing import Optional
15
+try:
16
+ import tomllib # type: ignore[import-not-found]
17
+except ImportError:
18
+ import tomli as tomllib # type: ignore[no-redef]
19
+
20
from packaging.requirements import Requirement
21
from typing_extensions import Self
22
0 commit comments