Type annotation for event arguments #207
falkoschindler
started this conversation in
Ideas / Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We just noticed a bug in our application where an event was called with a list, but the event handler expected a tuple. This caused a comparison to fail unexpectedly.
Maybe we can make
Event
a generic class with aTypeVar
representing the type of its event arguments. This would allow static type checkers to warn about type mismatches.Beta Was this translation helpful? Give feedback.
All reactions