diff --git a/qutebrowser/mainwindow/statusbar/percentage.py b/qutebrowser/mainwindow/statusbar/percentage.py index 339534b33..d5f3189b6 100644 --- a/qutebrowser/mainwindow/statusbar/percentage.py +++ b/qutebrowser/mainwindow/statusbar/percentage.py @@ -34,11 +34,11 @@ class Percentage(textbase.TextBase): self.set_perc(0, 0) @pyqtSlot(int, int) - def set_perc(self, _, y): + def set_perc(self, x, y): # pylint: disable=unused-argument """Setter to be used as a Qt slot. Args: - _: The x percentage (int), currently ignored. + x: The x percentage (int), currently ignored. y: The y percentage (int) """ if y == 0: diff --git a/tests/mainwindow/statusbar/test_percentage.py b/tests/mainwindow/statusbar/test_percentage.py index 5f17656ad..f43ffcfcf 100644 --- a/tests/mainwindow/statusbar/test_percentage.py +++ b/tests/mainwindow/statusbar/test_percentage.py @@ -61,6 +61,6 @@ def test_percentage_text(percentage, y, expected): def test_tab_change(percentage): """Make sure the percentage gets changed correctly when switching tabs.""" percentage.set_perc(x=None, y=10) - tab = FakeTab(20) + tab = FakeTab([0, 20]) percentage.on_tab_changed(tab) assert percentage.text() == '[20%]'