Skip to content

Conversation

@ddkasa
Copy link
Contributor

@ddkasa ddkasa commented Apr 17, 2025

Please review the following checklist.

  • Docstrings on all new or modified functions / classes
  • Updated documentation
  • Updated CHANGELOG.md (where appropriate)

Updates the Signal class to use the generic type for callbacks. This allows type checker to know what the full type of the callable should be when subscribing.

ddkasa added 2 commits April 17, 2025 18:42
When publishing the signal requires a `_pruning` attribute in order to
check if the node is not currently getting removed. The attribute is
implemented in `DOMNode` and not `MessagePump`.
Applies generics to the `SignalCallbackType`. Primarily to indicate what
type is required, when subscribing.
@willmcgugan willmcgugan merged commit 1d893a9 into Textualize:main Jun 1, 2025
23 checks passed
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.

2 participants