Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit a61ba94

Browse files
committed
Mypy fixes
1 parent 3008958 commit a61ba94

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

eduvpn/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -657,12 +657,12 @@ def on_ask_profile(self, old_state: State, profiles):
657657
def on_oauth_started(self, old_state: State, url: str):
658658
print(f"Authorization needed. Your browser has been opened with url: {url}")
659659

660-
@cmd_transition(ONLINEDETECT_STATE, StateType.ENTER)
661-
def on_online_detection(self, old_state: State, new_state: State):
660+
@cmd_transition(ONLINEDETECT_STATE, StateType.ENTER) # type: ignore[arg-type]
661+
def on_online_detection(self, old_state: State, data: str):
662662
print("Connected, but we are testing your VPN connection...")
663663

664-
@cmd_transition(FAILOVERED_STATE, StateType.ENTER)
665-
def on_failovered(self, old_state: State, new_state: State):
664+
@cmd_transition(FAILOVERED_STATE, StateType.ENTER) # type: ignore[arg-type]
665+
def on_failovered(self, old_state: State, data: str):
666666
print("The connection has switched to a new VPN protocol...")
667667

668668

eduvpn/ui/ui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from eduvpn_common import __version__ as commonver
2121
from eduvpn_common.state import State, StateType
2222
from gi.overrides.Gdk import Event, EventButton # type: ignore
23-
from gi.overrides.Gtk import (
23+
from gi.overrides.Gtk import ( # type: ignore[import-untyped]
2424
Box,
2525
Builder, # type: ignore[import-untyped]
2626
Button,
@@ -187,7 +187,7 @@ def setup(self, builder: Builder, application: Type["EduVpnGtkApplication"]) ->
187187
self.info_support_box = builder.get_object("infoSupportBox")
188188

189189
self.failover_text = builder.get_object("failoverText")
190-
self.failover_text_hide_cancel = None
190+
self.failover_text_hide_cancel: Optional[int] = None
191191
self.failover_label = builder.get_object("failoverLabel")
192192

193193
self.page_stack = builder.get_object("pageStack")

0 commit comments

Comments
 (0)