diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-06-14 17:46:04 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-06-14 18:00:06 +0300 |
commit | 85f6451860166545196ffa2950aa68be2363733b (patch) | |
tree | 4443b7b2465bda4bdc3589314f258329ecaedb38 /contrib/python/prompt-toolkit/py3/prompt_toolkit/validation.py | |
parent | fa297dd4855aef4bd79faebb48120708d2f9249d (diff) | |
download | ydb-85f6451860166545196ffa2950aa68be2363733b.tar.gz |
Intermediate changes
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/prompt_toolkit/validation.py')
-rw-r--r-- | contrib/python/prompt-toolkit/py3/prompt_toolkit/validation.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/validation.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/validation.py index 127445e86e..2b35d1fcc9 100644 --- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/validation.py +++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/validation.py @@ -2,6 +2,7 @@ Input validation for a `Buffer`. (Validators will be called before accepting input.) """ + from __future__ import annotations from abc import ABCMeta, abstractmethod @@ -36,11 +37,7 @@ class ValidationError(Exception): self.message = message def __repr__(self) -> str: - return "{}(cursor_position={!r}, message={!r})".format( - self.__class__.__name__, - self.cursor_position, - self.message, - ) + return f"{self.__class__.__name__}(cursor_position={self.cursor_position!r}, message={self.message!r})" class Validator(metaclass=ABCMeta): |