8000 [Python] Fix `__exit__` signature by Tishj · Pull Request #7849 · duckdb/duckdb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Python] Fix __exit__ signature #7849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2023

Conversation

Tishj
Copy link
Contributor
@Tishj Tishj commented Jun 6, 2023

This PR fixes #7816

As explained in the issue, returning None allows the type checkers to not have any uncertainty about the method swallowing exceptions or not.

@Tishj Tishj requested a review from Mause June 6, 2023 16:04
@Mytherin Mytherin merged commit e9b683c into duckdb:master Jun 7, 2023
@Mytherin
Copy link
Collaborator
Mytherin commented Jun 7, 2023

Thanks!

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.

Cursor context manager __exit__ type signature implies it swallows exceptions
3 participants
0