mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Adapt tests for Pygments 2.19
This commit is contained in:
@@ -12,7 +12,7 @@ from pygments.token import Name, Text
|
||||
|
||||
from sphinx.highlighting import PygmentsBridge
|
||||
|
||||
if tuple(map(int, pygments.__version__.split('.')[:2]))[:2] < (2, 18):
|
||||
if tuple(map(int, pygments.__version__.split('.')[:2])) < (2, 18):
|
||||
from pygments.formatter import Formatter
|
||||
|
||||
Formatter.__class_getitem__ = classmethod(lambda cls, name: cls) # type: ignore[attr-defined]
|
||||
|
||||
Reference in New Issue
Block a user