Skip to content

Commit

Permalink
lisa.conf: Improve FilteredDeferredValue display
Browse files Browse the repository at this point in the history
FEATURE

Display the FilteredDeferredValue under the name of the callback it is
wrapping to improve the DeferredValue.__str__ output.
  • Loading branch information
douglas-raillard-arm committed Dec 11, 2023
1 parent 486745c commit 744a8e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lisa/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ def _callback():
else:
return x

# Cheat on the name to have better DeferredValue.__str__ output
try:
_callback.__qualname__ = callback.__qualname__
# Not all callbacks have a __qualname__
except AttributeError:
pass

super().__init__(callback=_callback)


Expand Down

0 comments on commit 744a8e7

Please sign in to comment.