Skip to content

Commit a2024e5

Browse files
committed
WIN32: Replaced bare except (thanks to Avasam): clauses with except Exception:, preventing accidental suppression of system-exit signals (KeyboardInterrupt, SystemExit) during error handling.
ALL: Removed unused dependency on `typing_extensions` (thanks to Avasam - https://github.com/Avasam) ALL: Deprecated PyWinBox class in favor of WindowBox (window areas) and ScreenBox (screen areas) ALL: Added general functions: collidepoint, collidebox, contains, clip, union ALL: Added class methods: collidepoint, collidebox, contains, clip, union, move, inflate, clamp, isclamped, unclamp, fit
1 parent 81aab41 commit a2024e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pywinbox/_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def __init__(self,
143143
self._box :Box = box or Box(0, 0, 0, 0)
144144
self._onQuery: Callable[[], Box] = onQuery or self.onQuery
145145
self._onSet: Callable[[Box], None] = onSet or self.onSet
146-
self._clamp = None
146+
self._clamp: Box | None = None
147147

148148
def onQuery(self) -> Box:
149149
"""

0 commit comments

Comments
 (0)