From dd0d76cd83821e22a7054de21eb73051eb23274d Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Thu, 12 Mar 2026 16:48:06 -0500 Subject: [PATCH] Fix type errors on `main` (#18430) --- crates/uv-python/fetch-download-metadata.py | 2 +- python/uv/_find_uv.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/uv-python/fetch-download-metadata.py b/crates/uv-python/fetch-download-metadata.py index 9bf88e7df5..9826b2a1d0 100755 --- a/crates/uv-python/fetch-download-metadata.py +++ b/crates/uv-python/fetch-download-metadata.py @@ -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: diff --git a/python/uv/_find_uv.py b/python/uv/_find_uv.py index 656a7fbefa..ebe6b8d5a3 100644 --- a/python/uv/_find_uv.py +++ b/python/uv/_find_uv.py @@ -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"