Skip to content

Commit

Permalink
Mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jwijenbergh committed Apr 26, 2024
1 parent 76f4381 commit 4d1b8be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions eduvpn/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,11 +658,11 @@ def on_oauth_started(self, old_state: State, url: str):
print(f"Authorization needed. Your browser has been opened with url: {url}")

@cmd_transition(ONLINEDETECT_STATE, StateType.ENTER)
def on_online_detection(self, old_state: State, new_state: State):
def on_online_detection(self, old_state: State, data: str):
print("Connected, but we are testing your VPN connection...")

@cmd_transition(FAILOVERED_STATE, StateType.ENTER)
def on_failovered(self, old_state: State, new_state: State):
def on_failovered(self, old_state: State, data: str):
print("The connection has switched to a new VPN protocol...")


Expand Down
4 changes: 2 additions & 2 deletions eduvpn/ui/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from eduvpn_common import __version__ as commonver
from eduvpn_common.state import State, StateType
from gi.overrides.Gdk import Event, EventButton # type: ignore
from gi.overrides.Gtk import (
from gi.overrides.Gtk import ( # type: ignore[import-untyped]
Box,
Builder, # type: ignore[import-untyped]
Button,
Expand Down Expand Up @@ -187,7 +187,7 @@ def setup(self, builder: Builder, application: Type["EduVpnGtkApplication"]) ->
self.info_support_box = builder.get_object("infoSupportBox")

self.failover_text = builder.get_object("failoverText")
self.failover_text_hide_cancel = None
self.failover_text_hide_cancel: Optional[int] = None
self.failover_label = builder.get_object("failoverLabel")

self.page_stack = builder.get_object("pageStack")
Expand Down

0 comments on commit 4d1b8be

Please sign in to comment.