Skip to content

Conversation

@correctmost
Copy link
Contributor

PR Description:

This commit is a backwards compatible alternative to #3562.

References:

Typeshed definition for __exit__

https://github.com/python/typeshed/blob/8a6bfb06981a9bab7c74472f62d6132f501c4a0e/stdlib/contextlib.pyi#L52-L54

__exit__ docs

If an exception is supplied, and the method wishes to suppress the exception (i.e., prevent it from being propagated), it should return a true value. Otherwise, the exception will be processed normally upon exit from this method.

-- Python docs

Tests and Checks

  • I have tested the code!

@correctmost correctmost requested a review from Torxed as a code owner June 1, 2025 06:14
@Torxed Torxed merged commit a580da2 into archlinux:master Jun 1, 2025
9 checks passed
@correctmost correctmost deleted the cm/enable-exit-annotations-rule branch June 1, 2025 10:05
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