Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 29, 2024
1 parent 4cd9742 commit f5e8c89
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions warg/colors/label_colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
from warg import TripleNumber


def compute_color_for_labels(
label: int, palette: TripleNumber = (2**11 - 1, 2**15 - 1, 2**20 - 1)
) -> Tuple:
def compute_color_for_labels(label: int, palette: TripleNumber = (2**11 - 1, 2**15 - 1, 2**20 - 1)) -> Tuple:
"""
Simple function that adds fixed color depending on the class"""
return (*[int(((label > 0) * p * (label**2 - label + 1)) % 255) for p in palette],)
Expand Down
6 changes: 2 additions & 4 deletions warg/data_structures/ordered_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,10 @@ def __len__(self):
return len(self.items)

@overload
def __getitem__(self, index: Sequence[int]) -> List[T]:
...
def __getitem__(self, index: Sequence[int]) -> List[T]: ...

@overload
def __getitem__(self, index: slice) -> "OrderedSet[T]":
...
def __getitem__(self, index: slice) -> "OrderedSet[T]": ...

def __getitem__(self, index: int) -> T:
"""
Expand Down
2 changes: 1 addition & 1 deletion warg/os_utilities/platform_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def get_backend_module(project_name: str, backend_name: str = sys.platform) -> M
"appindicator",
"gtk",
"xorg",
"gtk_dbus"
"gtk_dbus",
# "unity", "kde", "gnome", "fallback",
]

Expand Down
2 changes: 1 addition & 1 deletion warg/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ize": "ise",
"yze": "yse",
"iza": "isa",
"aluminum": "aluminium"
"aluminum": "aluminium",
# 'se': 'ce',
# 'og': 'ogue',
}
Expand Down

0 comments on commit f5e8c89

Please sign in to comment.