From 58a72f3bc1b7d209a96c23897ba3e1c3516668a4 Mon Sep 17 00:00:00 2001 From: Emery Berger Date: Wed, 6 Dec 2023 19:23:39 -0500 Subject: [PATCH] Moved after type import. --- scalene/scalene_profiler.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/scalene/scalene_profiler.py b/scalene/scalene_profiler.py index 5580b4d06..aba022a25 100644 --- a/scalene/scalene_profiler.py +++ b/scalene/scalene_profiler.py @@ -44,13 +44,6 @@ from scalene.get_module_details import _get_module_details from scalene.find_browser import find_browser -console = Console(style="white on blue") - -# Assigning to `nada` disables any console.log commands. -def nada(*args: Any) -> None: - pass -console.log = nada - from collections import defaultdict from importlib.abc import SourceLoader from importlib.machinery import ModuleSpec @@ -97,6 +90,12 @@ def nada(*args: Any) -> None: from scalene.scalene_parseargs import ScaleneParseArgs, StopJupyterExecution from scalene.scalene_sigqueue import ScaleneSigQueue +console = Console(style="white on blue") +# Assigning to `nada` disables any console.log commands. +def nada(*args: Any) -> None: + pass +console.log = nada + MINIMUM_PYTHON_VERSION_MAJOR = 3 MINIMUM_PYTHON_VERSION_MINOR = 8