Letting type checkers know that self.myInvokeMethod = None shouldn't mean that myInvokeMethod could be None in normal circumstances (a closed EventSink shouldn't be used anymore).
Although maybe there's a better way of releasing resources? (like del, or assigning a default method that throws an error indicating that the object is already closed)
Letting type checkers know that
self.myInvokeMethod = None
shouldn't mean thatmyInvokeMethod
could be None in normal circumstances (a closedEventSink
shouldn't be used anymore).Although maybe there's a better way of releasing resources? (like
del
, or assigning a default method that throws an error indicating that the object is already closed)