File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ dependencies = [
51
51
" iniconfig" ,
52
52
" packaging" ,
53
53
" pluggy>=1.5,<2" ,
54
- " tomli>=1; python_version<'3.11'" ,
55
54
" pygments>=2.7.2" ,
55
+ " tomli>=1; python_version<'3.11'" ,
56
56
]
57
57
optional-dependencies.dev = [
58
58
" argcomplete" ,
Original file line number Diff line number Diff line change 11
11
from typing import TextIO
12
12
13
13
import pygments
14
+ from pygments .formatters .terminal import TerminalFormatter
14
15
from pygments .lexer import Lexer
15
- from pygments .lexers .python import PythonLexer
16
16
from pygments .lexers .diff import DiffLexer
17
- from pygments .formatters . terminal import TerminalFormatter
17
+ from pygments .lexers . python import PythonLexer
18
18
19
19
from ..compat import assert_never
20
20
from .wcwidth import wcswidth
@@ -238,7 +238,9 @@ def _highlight(
238
238
pygments_lexer = self ._get_pygments_lexer (lexer )
239
239
pygments_formatter = self ._get_pygments_formatter ()
240
240
241
- highlighted : str = pygments .highlight (source , pygments_lexer , pygments_formatter )
241
+ highlighted : str = pygments .highlight (
242
+ source , pygments_lexer , pygments_formatter
243
+ )
242
244
# pygments terminal formatter may add a newline when there wasn't one.
243
245
# We don't want this, remove.
244
246
if highlighted [- 1 ] == "\n " and source [- 1 ] != "\n " :
You can’t perform that action at this time.
0 commit comments