Repository navigation
docs(yq): record that a quoted date is named !!timestamp in an arithmetic error - #6935
Conversation
…etic error (#6904) yq names a quoted date !!str in the error of + - / % over kinds that do not combine, and succinctly yq names it !!timestamp, because OwnedValue has no timestamp kind and the tag is decided from the text. The ledger said so for * only.
CoverageTotal: 92.97% ⚪ 0 pp vs Comparing No per-file coverage changes vs 🔇 0 ignored region(s), 682 tolerated region(s)
642 more not shown: the full report is in the Touched files absent from every coverage report (1)
These files may contain no executable code or may have been omitted from the coverage run. Patch coverageNo new executable lines added by this diff. |
CoverageTotal: 93.02% ⚪ 0 pp vs Comparing No per-file coverage changes vs 🔇 0 ignored region(s), 681 tolerated region(s)
641 more not shown: the full report is in the Touched files absent from every coverage report (1)
These files may contain no executable code or may have been omitted from the coverage run. Patch coverageNo new executable lines added by this diff. |
|
Dequeued once by cancelling merge-group run 42973657522: its |
Summary
Docs only. #6931 fixed #6904; the limitations ledger there says every yq arithmetic error now follows yq's tag wording and that the key in parentheses is the one difference. One more difference exists and is not recorded: a quoted string that reads as a date is named
!!timestamp, where yq says!!str, becauseOwnedValuehas no timestamp kind and the tag is decided from the text (#5930 already does this for*,/and%).Probed on
main@ c791066 against yq v4.53.3:succinctly yq.i - "2001-01-01T00:00:00Z"!!int cannot be added to !!str!!int cannot be added to !!timestamp.l - "2001-01-01T00:00:00Z"!!str () cannot be subtracted from !!seq!!timestamp () cannot be subtracted from !!seq.m + "2001-01-01T00:00:00Z"!!str () cannot be added to a !!map (m)!!timestamp () cannot be added to a !!map ().i / "2001-01-01T00:00:00Z"!!int cannot be divided by !!str!!int cannot be divided by !!timestampFound by
/code-reviewof my own duplicate PR #6929, closed in favour of #6931.[no changelog]
Test plan
mainpython3 scripts/doc_lines.py check