diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-08 15:26:58 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-08 15:26:58 +0300 |
commit | 2efaaefec2cb2a55d55c01753d1eed2a3296adb5 (patch) | |
tree | 27ec5258b325565c3963b91b36d64e84084fdb04 /contrib/python/prompt-toolkit/py3/prompt_toolkit/layout | |
parent | 23793c5d0827a08b5ff9242d2123eff92b681912 (diff) | |
download | ydb-2efaaefec2cb2a55d55c01753d1eed2a3296adb5.tar.gz |
intermediate changes
ref:0bfa27bb6c38df8c510497e54e4ebf0b4fb84503
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/prompt_toolkit/layout')
4 files changed, 8 insertions, 8 deletions
diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/containers.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/containers.py index 547d81d68b..2c845a76aa 100644 --- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/containers.py +++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/containers.py @@ -826,7 +826,7 @@ class FloatContainer(Container): if postpone: new_z_index = ( - number + 10 ** 8 + number + 10**8 ) # Draw as late as possible, but keep the order. screen.draw_with_z_index( z_index=new_z_index, diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/controls.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/controls.py index 1e1f15f7aa..45b50e68f8 100644 --- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/controls.py +++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/controls.py @@ -208,7 +208,7 @@ class UIContent: return self._line_heights_cache[key] except KeyError: if width == 0: - height = 10 ** 8 + height = 10**8 else: # Calculate line width first. line = fragment_list_to_text(self.get_line(lineno))[:slice_stop] @@ -235,7 +235,7 @@ class UIContent: prefix_width = get_cwidth(fragment_list_to_text(fragments2)) if prefix_width >= width: # Prefix doesn't fit. - height = 10 ** 8 + height = 10**8 break text_width += prefix_width @@ -244,7 +244,7 @@ class UIContent: try: quotient, remainder = divmod(text_width, width) except ZeroDivisionError: - height = 10 ** 8 + height = 10**8 else: if remainder: quotient += 1 # Like math.ceil. @@ -488,7 +488,7 @@ class DummyControl(UIControl): return [] return UIContent( - get_line=get_line, line_count=100 ** 100 + get_line=get_line, line_count=100**100 ) # Something very big. def is_focusable(self) -> bool: diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/dimension.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/dimension.py index 9b68da2f8f..04c21637cb 100644 --- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/dimension.py +++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/dimension.py @@ -58,7 +58,7 @@ class Dimension: if min is None: min = 0 # Smallest possible value. if max is None: # 0-values are allowed, so use "is None" - max = 1000 ** 10 # Something huge. + max = 1000**10 # Something huge. if preferred is None: preferred = min if weight is None: diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/menus.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/menus.py index e138fcea11..557450c000 100644 --- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/menus.py +++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/menus.py @@ -277,7 +277,7 @@ class CompletionsMenu(ConditionalContainer): scroll_offset: Union[int, Callable[[], int]] = 0, extra_filter: FilterOrBool = True, display_arrows: FilterOrBool = False, - z_index: int = 10 ** 8, + z_index: int = 10**8, ) -> None: extra_filter = to_filter(extra_filter) @@ -622,7 +622,7 @@ class MultiColumnCompletionsMenu(HSplit): suggested_max_column_width: int = 30, show_meta: FilterOrBool = True, extra_filter: FilterOrBool = True, - z_index: int = 10 ** 8, + z_index: int = 10**8, ) -> None: show_meta = to_filter(show_meta) |