summaryrefslogtreecommitdiffstats
path: root/ptpython/prompt_style.py
diff options
context:
space:
mode:
Diffstat (limited to 'ptpython/prompt_style.py')
-rw-r--r--ptpython/prompt_style.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/ptpython/prompt_style.py b/ptpython/prompt_style.py
index 24e5f88..96b738f 100644
--- a/ptpython/prompt_style.py
+++ b/ptpython/prompt_style.py
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
from abc import ABCMeta, abstractmethod
from typing import TYPE_CHECKING
@@ -16,7 +18,7 @@ class PromptStyle(metaclass=ABCMeta):
@abstractmethod
def in_prompt(self) -> AnyFormattedText:
- " Return the input tokens. "
+ "Return the input tokens."
return []
@abstractmethod
@@ -31,7 +33,7 @@ class PromptStyle(metaclass=ABCMeta):
@abstractmethod
def out_prompt(self) -> AnyFormattedText:
- " Return the output tokens. "
+ "Return the output tokens."
return []
@@ -40,7 +42,7 @@ class IPythonPrompt(PromptStyle):
A prompt resembling the IPython prompt.
"""
- def __init__(self, python_input: "PythonInput") -> None:
+ def __init__(self, python_input: PythonInput) -> None:
self.python_input = python_input
def in_prompt(self) -> AnyFormattedText: