Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions Lib/_colorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@

from collections.abc import Callable, Iterator, Mapping
from dataclasses import dataclass, field, Field
lazy from typing import IO, Literal, Self, ClassVar

COLORIZE = True


# types
if False:
from typing import IO, Literal, Self, ClassVar
_theme: Theme
_theme: Theme
type BackgroundStyle = Literal["dark", "light"]


class ANSIColors:
Expand Down Expand Up @@ -319,7 +317,7 @@ class LiveProfiler(ThemeSection):
medal_bronze_fg: int = CursesColors.GREEN

# Background style: 'dark' or 'light'
background_style: Literal["dark", "light"] = "dark"
background_style: BackgroundStyle = "dark"


LiveProfilerLight = LiveProfiler(
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test__colorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TestImportTime(unittest.TestCase):
@cpython_only
def test_lazy_import(self):
import_helper.ensure_lazy_imports(
"_colorize", {"copy", "re", "inspect"}
"_colorize", {"copy", "re", "inspect", "typing"}
)


Expand Down
Loading