Skip to content

Commit

Permalink
Moved after type import.
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryberger committed Dec 7, 2023
1 parent 4f71ded commit 58a72f3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions scalene/scalene_profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 58a72f3

Please sign in to comment.