Skip to content

Commit c6609ca

Browse files
committed
Ruff lints
1 parent 9d2b5ad commit c6609ca

File tree

1 file changed

+3
-3
lines changed
  • src/ScrollableContainers

1 file changed

+3
-3
lines changed

src/ScrollableContainers/_tk.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def _peek_scrollbars(self, _event: tk.Event | None = None):
109109
self._show_scrollbars()
110110
self._schedule_hide_scrollbars()
111111

112-
def _xview(self, action: str, fraction_or_amount: float | int, what: str | None = None, *, width: int | None = None):
112+
def _xview(self, action: str, fraction_or_amount: float, what: str | None = None, *, width: int | None = None):
113113
"""
114114
Called when a horizontal scroll is requested. Called by other callbacks
115115
(``_configure_viewport_explicit`` and ``_configure_viewport_implicit``)
@@ -135,7 +135,7 @@ def _xview(self, action: str, fraction_or_amount: float | int, what: str | None
135135
self._canvas.xview_moveto((1 - width / self._frame.winfo_width()) / 2)
136136
self._peek_scrollbars()
137137

138-
def _yview(self, action:str,fraction_or_amount:float|int,what:str|None=None):
138+
def _yview(self, action: str, fraction_or_amount: float, what: str | None = None):
139139
"""
140140
Called when a vertical scroll is requested. Scroll the viewport only if
141141
it does not show everything in the vertical dimension.
@@ -145,7 +145,7 @@ def _yview(self, action:str,fraction_or_amount:float|int,what:str|None=None):
145145
:param what: Third argument of ``tkinter.Canvas.yview``.
146146
"""
147147
if self._canvas.yview() != (0.0, 1.0):
148-
self._canvas.yview(action,fraction_or_amount,what)
148+
self._canvas.yview(action, fraction_or_amount, what)
149149
self._peek_scrollbars()
150150

151151
def _configure_viewport_explicit(self, event: tk.Event):

0 commit comments

Comments
 (0)