A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/themix-project/themix-gui/commit/c366390118d3d271b425b4ffad476d0ac374ab9c below:

restore support for python<3.9 · themix-project/themix-gui@c366390 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+11

-5

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+11

-5

lines changed Original file line number Diff line number Diff line change

@@ -1,10 +1,14 @@

1 -

from typing import Sequence, Annotated, Tuple, Union

1 +

import sys

2 +

from typing import Sequence, Tuple, Union

2 3 3 4

from gi.repository import Gdk

4 5 5 - 6 -

HexColor = Annotated[str, 6]

7 -

IntColor = Annotated[Sequence[int], 3]

6 +

HexColor = str

7 +

IntColor = Sequence[int]

8 +

if sys.version_info.minor >= 9:

9 +

from typing import Annotated

10 +

HexColor = Annotated[str, 6] # type: ignore[misc, assignment]

11 +

IntColor = Annotated[Sequence[int], 3] # type: ignore[misc, assignment]

8 12 9 13 10 14

def hex_to_int(text: HexColor) -> int:

Original file line number Diff line number Diff line change

@@ -836,7 +836,9 @@ def set_accels_for_action(action, accels, action_id=None):

836 836

plugin_name=plugin_name

837 837

),

838 838

secondary_text='\n'.join((

839 -

translate('Shortcut "{shortcut}" already assigned to {action_type} "{name}".').format( # noqa # pylint: disable=line-too-long

839 +

translate(

840 +

'Shortcut "{shortcut}" already assigned to {action_type} "{name}".'

841 +

).format(

840 842

shortcut=plugin.shortcut,

841 843

action_type=translate('plugin') if _is_plugin_shortcut else translate('action'),

842 844

name=(

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4