fix: add type annotations to whitelisted expense functions [backport/v5-fix]

Backport of !2156 (merged)


Merge request reports

Loading