diff options
Diffstat (limited to 'src/prompt_toolkit/lexers')
-rw-r--r-- | src/prompt_toolkit/lexers/__init__.py | 1 | ||||
-rw-r--r-- | src/prompt_toolkit/lexers/base.py | 1 | ||||
-rw-r--r-- | src/prompt_toolkit/lexers/pygments.py | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/prompt_toolkit/lexers/__init__.py b/src/prompt_toolkit/lexers/__init__.py index 9bdc599..8f72d07 100644 --- a/src/prompt_toolkit/lexers/__init__.py +++ b/src/prompt_toolkit/lexers/__init__.py @@ -2,6 +2,7 @@ Lexer interface and implementations. Used for syntax highlighting. """ + from __future__ import annotations from .base import DynamicLexer, Lexer, SimpleLexer diff --git a/src/prompt_toolkit/lexers/base.py b/src/prompt_toolkit/lexers/base.py index 3f65f8e..c61e2b9 100644 --- a/src/prompt_toolkit/lexers/base.py +++ b/src/prompt_toolkit/lexers/base.py @@ -1,6 +1,7 @@ """ Base classes for prompt_toolkit lexers. """ + from __future__ import annotations from abc import ABCMeta, abstractmethod diff --git a/src/prompt_toolkit/lexers/pygments.py b/src/prompt_toolkit/lexers/pygments.py index 4721d73..d5a39c4 100644 --- a/src/prompt_toolkit/lexers/pygments.py +++ b/src/prompt_toolkit/lexers/pygments.py @@ -4,6 +4,7 @@ Adaptor classes for using Pygments lexers within prompt_toolkit. This includes syntax synchronization code, so that we don't have to start lexing at the beginning of a document, when displaying a very large text. """ + from __future__ import annotations import re |