Skip to content

Commit bffdd71

Browse files
committed
move class
1 parent 3422fa7 commit bffdd71

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

Lib/_colorize.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,17 @@ class Argparse(ThemeSection):
172172
reset: str = ANSIColors.RESET
173173

174174

175+
@dataclass(frozen=True)
176+
class Difflib(ThemeSection):
177+
"""A 'git diff'-like theme for `difflib.unified_diff`."""
178+
header: str = ANSIColors.BOLD # eg "---" and "+++" lines
179+
hunk: str = ANSIColors.CYAN # the "@@" lines
180+
context: str = ANSIColors.RESET # context lines
181+
added: str = ANSIColors.GREEN
182+
removed: str = ANSIColors.RED
183+
reset: str = ANSIColors.RESET
184+
185+
175186
@dataclass(frozen=True)
176187
class Syntax(ThemeSection):
177188
prompt: str = ANSIColors.BOLD_MAGENTA
@@ -207,17 +218,6 @@ class Unittest(ThemeSection):
207218
reset: str = ANSIColors.RESET
208219

209220

210-
@dataclass(frozen=True)
211-
class Difflib(ThemeSection):
212-
"""A 'git diff'-like theme for `difflib.unified_diff`."""
213-
header: str = ANSIColors.BOLD # eg "---" and "+++" lines
214-
hunk: str = ANSIColors.CYAN # the "@@" lines
215-
context: str = ANSIColors.RESET # context lines
216-
added: str = ANSIColors.GREEN
217-
removed: str = ANSIColors.RED
218-
reset: str = ANSIColors.RESET
219-
220-
221221
@dataclass(frozen=True)
222222
class Theme:
223223
"""A suite of themes for all sections of Python.

0 commit comments

Comments
 (0)