Skip to content

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Jun 4, 2024

Letting Editors and 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)

@Avasam Avasam requested a review from mhammond October 18, 2024 18:25
@Avasam Avasam changed the title pyright turn on reportOptionalCall pyright turn on reportOptionalCall Nov 13, 2024
@Avasam Avasam changed the title pyright turn on reportOptionalCall Type EventSink.myInvokeMethod as non-None in normal circumstance + re-enable reportOptionalCall Apr 28, 2025
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.

1 participant