Skip to content

Commit

Permalink
looser type hint fixes cythonized strict mode error
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 13, 2025
1 parent eaf614d commit 43d6b1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xpra/client/gui/keyboard_shortcuts_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# later version. See the file COPYING for details.

import os
from collections.abc import Sequence

from xpra.util.str_fn import csv, print_nested_dict
from xpra.os_util import POSIX
Expand Down Expand Up @@ -74,8 +75,8 @@ def mod_defaults():
return shortcut_modifiers


def parse_shortcuts(strs: list[str],
shortcut_modifiers: list[str],
def parse_shortcuts(strs: Sequence[str],
shortcut_modifiers: Sequence[str],
modifier_names: dict[str, str],
) -> dict[str, list[tuple[list[str], str, list[str | float | bool | int | None]]]]:
"""
Expand Down

0 comments on commit 43d6b1d

Please sign in to comment.