You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small description
Functions that use the @deprecated decorator do not display the intended warnings, if @deprecated is wrapped around @VisiData.api or @Visidata.global_api or @visidata.[class].api.
Steps to reproduce vd then press ^X and input sheet.keystr(sheet.cursorRow)
Expected result
I expect to see the warning keystr deprecated since v3.1; use sheet.rowname(row).
Actual result with screenshot
The deprecated function (such as keystr()) runs as expected, but no deprecation warning is shown.
Small description
Functions that use the
@deprecated
decorator do not display the intended warnings, if@deprecated
is wrapped around@VisiData.api
or@Visidata.global_api
or@visidata.[class].api
.Steps to reproduce
vd
then press^X
and inputsheet.keystr(sheet.cursorRow)
Expected result
I expect to see the warning
keystr deprecated since v3.1; use sheet.rowname(row)
.Actual result with screenshot
The deprecated function (such as
keystr()
) runs as expected, but no deprecation warning is shown.Configuration
visidata v3.2dev
Python 3.12.3
Ubuntu 24.04
Additional context
If I reverse the order of the 2 decorators so that
@deprecated
comes after@api
, the deprecation works as intended:The text was updated successfully, but these errors were encountered: