Skip to content

A few quick fixes #2503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 23, 2025
Merged

A few quick fixes #2503

merged 4 commits into from
Jan 23, 2025

Conversation

DragonMoffon
Copy link
Collaborator

@DragonMoffon DragonMoffon commented Jan 23, 2025

Fixes:

@DragonMoffon DragonMoffon changed the title A few hotfixes A few quick fixes Jan 23, 2025
@pushfoo pushfoo merged commit 434ed57 into development Jan 23, 2025
9 checks passed
@pushfoo pushfoo deleted the hot-fixes branch January 23, 2025 06:36
@@ -64,8 +64,8 @@ def __init__(
name: str | None = None,
accept_keyboard_keys: bool | Iterable = True,
accept_mouse_events: bool | Iterable = True,
prevent_dispatch: Iterable | None = None,
prevent_dispatch_view: Iterable | None = None,
prevent_dispatch: Iterable | bool | None = None,
Copy link

@AnonymousCoward128746 AnonymousCoward128746 Jan 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defval can be set to {True} now, and then L99 just becomes
self.prevent_dispatch = prevent_dispatch

same for _view. This would break existing code which explicitly passes in None (can't imagine such).

Also maybe bool | Iterable vs. Iterable | bool should be consistent for readability.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants