Fix type errors on main (#18430)

This commit is contained in:
Zanie Blue
2026-03-12 16:48:06 -05:00
committed by GitHub
parent ed35fe83ab
commit dd0d76cd83
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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"