Description: Set the ty crate version to match the packaged ruff
 ty is released from https://github.com/astral-sh/ty; crates/ty/Cargo.toml
 carries a 0.0.0 placeholder. This sets it to the ty release whose bundled ruff
 submodule matches the packaged ruff (0.16.10 -> ty 0.0.85, pinned ruff commit
 19cb997763936be5bd7f3f791965366a99b3989b).
 Also fall back to CARGO_PKG_VERSION when TY_VERSION and git metadata are unavailable.
Forwarded: not-needed
---
Index: ruff/crates/ty/Cargo.toml
===================================================================
--- ruff.orig/crates/ty/Cargo.toml	2026-10-19 17:55:29.443351206 +0200
+++ ruff/crates/ty/Cargo.toml	2026-10-19 17:58:52.366480795 +0200
@@ -1,6 +1,6 @@
 [package]
 name = "ty"
-version = "0.0.0"
+version = "0.0.85"
 publish = false
 # required for correct pypi metadata
 homepage = "https://github.com/astral-sh/ty/"
Index: ruff/crates/ty/src/version.rs
===================================================================
--- ruff.orig/crates/ty/src/version.rs	2026-10-19 17:55:29.443351206 +0200
+++ ruff/crates/ty/src/version.rs	2026-10-19 17:55:29.443340485 +0200
@@ -77,7 +77,7 @@
                         .unwrap_or(tag.clone())
                 })
             })
-            .unwrap_or("unknown".to_string())
+            .unwrap_or_else(|| env!("CARGO_PKG_VERSION").to_string())
     });
 
     VersionInfo {
