Skip to content

Commit

Permalink
remove invalid type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 16, 2025
1 parent ce31068 commit 68c9888
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def du(path: str) -> int:
return sum(os.path.getsize(f) for f in glob(f"{path}/**", recursive=True) if os.path.isfile(f))


def build_package() -> None:
def build_package() -> int:
if not LINUX:
raise RuntimeError("packaging is not implemented here yet, use platform specific scripts instead")
print("* installing beta repository tools and libraries")
Expand Down Expand Up @@ -821,8 +821,7 @@ def show_help() -> None:
sys.exit(0)

if "package" in sys.argv:
build_package()
sys.exit(0)
sys.exit(build_package())

if "install-repo" in sys.argv:
install_repo()
Expand Down
2 changes: 1 addition & 1 deletion xpra/client/pyglet/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def init_ui(self, opts) -> None:
def cleanup(self) -> None:
""" client classes must define this method """

def setup_connection(self, conn) -> None:
def setup_connection(self, conn):
protocol_class = get_client_protocol_class(conn.socktype)
protocol = protocol_class(conn, self.process_packet, self.next_packet, scheduler=PygletScheduler())
log(f"setup_connection({conn}) {protocol=}")
Expand Down
2 changes: 1 addition & 1 deletion xpra/client/qt6/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def init_ui(self, opts) -> None:
def cleanup(self) -> None:
""" client classes must define this method """

def setup_connection(self, conn) -> None:
def setup_connection(self, conn):
"""
Warnings:
* this only works for plain `tcp` sockets
Expand Down
2 changes: 1 addition & 1 deletion xpra/client/tk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def init_ui(self, opts) -> None:
def cleanup(self) -> None:
""" client classes must define this method """

def setup_connection(self, conn) -> None:
def setup_connection(self, conn):
protocol_class = get_client_protocol_class(conn.socktype)
protocol = protocol_class(conn, self.process_packet, self.next_packet, scheduler=TkScheduler())
log(f"setup_connection({conn}) {protocol=}")
Expand Down

0 comments on commit 68c9888

Please sign in to comment.