uninstall_extra_method_error(
extra: str,
*,
method: InstallMethod | None = None
) -> str| Name | Type | Description |
|---|---|---|
extra* | str | |
method | InstallMethod | None | Default: None |
Return why the install method cannot remove extra, if applicable.
The editable check is separate from detect_install_method: an editable
checkout installed under a uv tool prefix is reported as "uv", so the
method alone would let a removal through that cannot work. Gating both here
keeps one refusal message and makes perform_uninstall_extra safe for any
caller rather than relying on each one to pre-check.
Extra name the user asked to remove, used in the hint.
Optional pre-detected install method. Defaults to detecting it.