mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-28 14:04:22 -04:00
Merge pull request #103 from monosans/comprehension
Replace for loop with list comprehension
This commit is contained in:
commit
d668b8c4b7
1 changed files with 1 additions and 5 deletions
|
@ -46,11 +46,7 @@ def get_config(bitmaps_dir: Union[str, Path], **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))
|
|
||||||
|
|
||||||
config: Dict[str, Any] = {}
|
config: Dict[str, Any] = {}
|
||||||
|
|
||||||
for key, item in X_CURSORS_CFG.items():
|
for key, item in X_CURSORS_CFG.items():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue