File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
176187class 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 )
222222class Theme :
223223 """A suite of themes for all sections of Python.
You can’t perform that action at this time.
0 commit comments