This also adds a new `ModuleName::relative_to` public API to help with this. Kudos to @AlexWaygood for the meat of this patch! Ref https://github.com/astral-sh/ruff/pull/18830#discussion_r2161770991
This also adds a new `ModuleName::relative_to` public API to help with this. Kudos to @AlexWaygood for the meat of this patch! Ref https://github.com/astral-sh/ruff/pull/18830#discussion_r2161770991