Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
Co-authored-by: port19 <[email protected]>
  • Loading branch information
arza-zara and port19x authored Sep 16, 2023
1 parent 50400c8 commit fb6345a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 70 deletions.
1 change: 0 additions & 1 deletion qutebrowser/mainwindow/tabwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ def tab_bar(self) -> "TabBar":

def _tab_by_idx(self, idx: int) -> Optional[QWidget]:
"""Get the tab at the given index."""

tab = self.widget(idx)
if tab is not None:
assert isinstance(tab, browsertab.AbstractTab), tab
Expand Down
19 changes: 2 additions & 17 deletions qutebrowser/mainwindow/treetabbedbrowser.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:

# Copyright 2014-2018 Giuseppe Stelluto (pinusc) <[email protected]>
#
# This file is part of qutebrowser.
#
# qutebrowser is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# qutebrowser is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# SPDX-FileCopyrightText: Giuseppe Stelluto (pinusc) <[email protected]>
#
# You should have received a copy of the GNU General Public License
# along with qutebrowser. If not, see <https://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-3.0-or-later

"""Subclass of TabbedBrowser to provide tree-tab functionality."""

Expand Down
19 changes: 2 additions & 17 deletions qutebrowser/mainwindow/treetabwidget.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:

# Copyright 2014-2018 Giuseppe Stelluto (pinusc) <[email protected]>
#
# This file is part of qutebrowser.
#
# qutebrowser is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# qutebrowser is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# SPDX-FileCopyrightText: Giuseppe Stelluto (pinusc) <[email protected]>
#
# You should have received a copy of the GNU General Public License
# along with qutebrowser. If not, see <https://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-3.0-or-later

"""Extension of TabWidget for tree-tab functionality."""

Expand Down
21 changes: 3 additions & 18 deletions qutebrowser/misc/notree.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:

# Copyright 2019 Giuseppe Stelluto (pinusc) <[email protected]>
#
# This file is part of qutebrowser.
#
# qutebrowser is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# qutebrowser is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# SPDX-FileCopyrightText: Giuseppe Stelluto (pinusc) <[email protected]>
#
# You should have received a copy of the GNU General Public License
# along with qutebrowser. If not, see <https://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-3.0-or-later

"""Tree library for tree-tabs.
Expand Down Expand Up @@ -138,7 +123,7 @@ def parent(self) -> Optional['Node[T]']:
def parent(self, value: 'Node[T]') -> None:
"""Set parent property. Also adds self to value.children."""
# pylint: disable=protected-access
assert(value is None or isinstance(value, Node))
assert (value is None or isinstance(value, Node))
if self.__parent:
self.__parent.__disown(self)
self.__parent = None
Expand Down
19 changes: 2 additions & 17 deletions tests/unit/misc/test_notree.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:

# Copyright 2019 Florian Bruhin (The-Compiler) <[email protected]>
#
# This file is part of qutebrowser.
#
# qutebrowser is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# qutebrowser is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# SPDX-FileCopyrightText: Florian Bruhin (The-Compiler) <[email protected]>
#
# You should have received a copy of the GNU General Public License
# along with qutebrowser. If not, see <https://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-3.0-or-later
"""Tests for misc.notree library."""
import pytest

Expand Down

0 comments on commit fb6345a

Please sign in to comment.