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.4 -> ty 0.0.73, pinned ruff commit
 107e38d04573ff546a1caa8bff0c04875efb6afb).
 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
+++ ruff/crates/ty/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "ty"
-version = "0.0.0"
+version = "0.0.73"
 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
+++ ruff/crates/ty/src/version.rs
@@ -77,7 +77,7 @@ pub(crate) fn version() -> VersionInfo {
                         .unwrap_or(tag.clone())
                 })
             })
-            .unwrap_or("unknown".to_string())
+            .unwrap_or_else(|| env!("CARGO_PKG_VERSION").to_string())
     });
 
     VersionInfo {
