diff --git a/scalene/scalene_profiler.py b/scalene/scalene_profiler.py index 80e9b8ceb..5580b4d06 100644 --- a/scalene/scalene_profiler.py +++ b/scalene/scalene_profiler.py @@ -45,9 +45,10 @@ from scalene.find_browser import find_browser console = Console(style="white on blue") -def nada(*args): - pass + # Assigning to `nada` disables any console.log commands. +def nada(*args: Any) -> None: + pass console.log = nada from collections import defaultdict