Skip to content

Commit 4a32a66

Browse files
committed
typing improvements
1 parent c37d5fe commit 4a32a66

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pyprland/plugins/scratchpads/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ async def _alternative_lookup(self) -> bool:
348348
match_by, match_value = pending_scratch.get_match_props()
349349
match_fn = get_match_fn(match_by, match_value)
350350
for client in clients:
351-
assert isinstance(client, dict)
352351
if match_fn(client[match_by], match_value):
353352
self.scratches.register(pending_scratch, addr=client["address"][2:])
354353
self.log.debug("client class found: %s", client)
@@ -631,7 +630,7 @@ async def _animate_show(self, scratch: Scratch, monitor: MonitorInfo, relative_a
631630
"""Animate the show transition."""
632631
animation_type = get_animation_type(scratch)
633632
if animation_type:
634-
offset = tuple(-1 * n for n in await self.get_offsets(scratch, monitor))
633+
offset = cast(tuple[int, int], tuple(-1 * n for n in await self.get_offsets(scratch, monitor)))
635634
if relative_animation:
636635
# Relative positioning
637636
if "size" not in scratch.client_info:

pyprland/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Package version."""
22

3-
VERSION = "2.3.0-3"
3+
VERSION = "2.3.0-5"

0 commit comments

Comments
 (0)