pub(crate) fn tenor(spelling: &str) -> PyResult<String>
Normalizes a tenor to its canonical spelling ("12M" stays "12M"; "1Y" stays "1Y" — the unit is part of the tenor, not a quantity to convert away).
"12M"
"1Y"