mirror of
https://github.com/astral-sh/uv.git
synced 2026-05-06 08:56:53 -04:00
Fix type errors on main (#18430)
This commit is contained in:
@@ -147,7 +147,7 @@ class Variant(StrEnum):
|
||||
@classmethod
|
||||
def from_build_options(
|
||||
cls: type["Variant"], build_options: list[str]
|
||||
) -> "Variant" | None:
|
||||
) -> "Variant | None":
|
||||
if "debug" in build_options and "freethreaded" in build_options:
|
||||
return cls.FREETHREADED_DEBUG
|
||||
elif "debug" in build_options:
|
||||
|
||||
@@ -94,7 +94,7 @@ def _user_scheme() -> str:
|
||||
user_scheme = sysconfig.get_preferred_scheme("user")
|
||||
elif os.name == "nt":
|
||||
user_scheme = "nt_user"
|
||||
elif sys.platform == "darwin" and sys._framework: # ty: ignore[unresolved-attribute]
|
||||
elif sys.platform == "darwin" and sys._framework:
|
||||
user_scheme = "osx_framework_user"
|
||||
else:
|
||||
user_scheme = "posix_user"
|
||||
|
||||
Reference in New Issue
Block a user