mirror of
https://github.com/ful1e5/apple_cursor.git
synced 2025-05-20 10:15:19 -04:00
Replace for loop with list comprehension
This commit is contained in:
parent
73ed043fbd
commit
2a2813d94d
1 changed files with 1 additions and 5 deletions
|
@ -46,11 +46,7 @@ def get_config(bitmaps_dir, **kwargs) -> Dict[str, Any]:
|
||||||
w_size = to_tuple(kwargs.pop("win_size"))
|
w_size = to_tuple(kwargs.pop("win_size"))
|
||||||
w_canvas_size = to_tuple(kwargs.pop("win_canvas_size"))
|
w_canvas_size = to_tuple(kwargs.pop("win_canvas_size"))
|
||||||
raw_x_sizes = kwargs.pop("x_sizes")
|
raw_x_sizes = kwargs.pop("x_sizes")
|
||||||
|
x_sizes = [to_tuple(size) for size in raw_x_sizes]
|
||||||
x_sizes = []
|
|
||||||
for size in raw_x_sizes:
|
|
||||||
x_sizes.append(to_tuple(size))
|
|
||||||
|
|
||||||
png_provider = PNGProvider(bitmaps_dir)
|
png_provider = PNGProvider(bitmaps_dir)
|
||||||
config: Dict[str, Any] = {}
|
config: Dict[str, Any] = {}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue