diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-27 10:39:56 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-27 10:39:56 +0000 |
commit | eeeaff8afe94b2806a79a02b7c01c912a984a22f (patch) | |
tree | 97983910e3beb2f21c346165f69f3fc57a411b15 /ptpython/ipython.py | |
parent | Adding upstream version 3.0.22. (diff) | |
download | ptpython-eeeaff8afe94b2806a79a02b7c01c912a984a22f.tar.xz ptpython-eeeaff8afe94b2806a79a02b7c01c912a984a22f.zip |
Adding upstream version 3.0.23.upstream/3.0.23
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ptpython/ipython.py')
-rw-r--r-- | ptpython/ipython.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ptpython/ipython.py b/ptpython/ipython.py index db2a204..fb4b5ed 100644 --- a/ptpython/ipython.py +++ b/ptpython/ipython.py @@ -8,6 +8,8 @@ also the power of for instance all the %-magic functions that IPython has to offer. """ +from __future__ import annotations + from typing import Iterable from warnings import warn @@ -62,12 +64,12 @@ class IPythonPrompt(PromptStyle): class IPythonValidator(PythonValidator): def __init__(self, *args, **kwargs): - super(IPythonValidator, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) self.isp = IPythonInputSplitter() def validate(self, document: Document) -> None: document = Document(text=self.isp.transform_cell(document.text)) - super(IPythonValidator, self).validate(document) + super().validate(document) def create_ipython_grammar(): |