Skip to content

Commit

Permalink
Removed overloaded methods
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Nov 14, 2023
1 parent ea6e0d5 commit e3f8650
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions brainglobe_utils/qtpy/collapsible_widget.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Optional, Union, overload
from typing import List, Optional, Union

from qtpy.QtCore import Qt, Signal
from qtpy.QtWidgets import QGroupBox, QVBoxLayout, QWidget
Expand Down Expand Up @@ -86,14 +86,6 @@ def __init__(self):
self.layout().setContentsMargins(0, 0, 0, 0)
self.collapsible_widgets: List[CollapsibleWidget] = []

@overload
def add_widget(self, widget: QWidget):
...

@overload
def add_widget(self, widget: CollapsibleWidget):
...

def add_widget(self, widget: Union[QWidget, CollapsibleWidget]):
"""
Adds a QWidget or a CollapsibleWidget to the chest.
Expand All @@ -109,14 +101,6 @@ def add_widget(self, widget: Union[QWidget, CollapsibleWidget]):

self.layout().addWidget(widget, 0, Qt.AlignTop)

@overload
def remove_widget(self, widget: QWidget):
...

@overload
def remove_widget(self, widget: CollapsibleWidget):
...

def remove_widget(self, widget: Union[QWidget, CollapsibleWidget]):
"""
Removes a widget from the chest.
Expand Down

0 comments on commit e3f8650

Please sign in to comment.