Skip to content

Commit d283290

Browse files
committed
Update constructors
1 parent d7995b6 commit d283290

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

main.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@
2727
from src.backend.PageManagement.Page import Page
2828

2929
class PostRequest(ActionBase):
30-
def __init__(self, action_id: str, action_name: str,
31-
deck_controller: "DeckController", page: Page, coords: str, plugin_base: PluginBase):
32-
super().__init__(action_id=action_id, action_name=action_name,
33-
deck_controller=deck_controller, page=page, coords=coords, plugin_base=plugin_base)
30+
def __init__(self, *args, **kwargs):
31+
super().__init__(*args, **kwargs)
3432

3533
def on_ready(self):
3634
self.set_media(media_path=os.path.join(self.plugin_base.PATH, "assets", "http.png"), size=0.9)
@@ -76,10 +74,8 @@ def on_key_down(self):
7674
self.show_error(duration=2)
7775

7876
class GetRequest(ActionBase):
79-
def __init__(self, action_id: str, action_name: str,
80-
deck_controller: "DeckController", page: Page, coords: str, plugin_base: PluginBase):
81-
super().__init__(action_id=action_id, action_name=action_name,
82-
deck_controller=deck_controller, page=page, coords=coords, plugin_base=plugin_base)
77+
def __init__(self, *args, **kwargs):
78+
super().__init__(*args, **kwargs)
8379

8480
self.n_ticks = 0
8581

0 commit comments

Comments
 (0)