Use ty to type-check Python files (#17229)

I added mypy type‑checking in https://github.com/astral-sh/uv/pull/5332,
so I think it's a good time to switch to ty now :)
This commit is contained in:
Jo
2026-01-08 02:25:15 +08:00
committed by GitHub
parent 9ddaae2244
commit 29c44c71c2
3 changed files with 7 additions and 9 deletions

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:
elif sys.platform == "darwin" and sys._framework: # ty: ignore[unresolved-attribute]
user_scheme = "osx_framework_user"
else:
user_scheme = "posix_user"