fix(core): fix double backticks in deprecation docstring for alternative_import (#35658)

This commit is contained in:
Ethan T.
2026-03-09 03:36:04 +08:00
committed by GitHub
parent b21c0a8062
commit f838c78788

View File

@@ -399,7 +399,7 @@ def deprecated(
components = [
_message,
f"Use {_alternative} instead." if _alternative else "",
f"Use `{_alternative_import}` instead." if _alternative_import else "",
f"Use {_alternative_import} instead." if _alternative_import else "",
_addendum,
]
details = " ".join([component.strip() for component in components if component])