Skip to content
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

Type all context manager dunders #4581

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

Avasam
Copy link
Contributor

@Avasam Avasam commented Aug 20, 2024

Summary of changes

Work towards #2345
Reduce changes in #4192 and #4504

I typed all __enter__ and __exit__ (didn't find any __aenter__ or __aexit__)

Note here that object param type stands for "Unused even in subclass" and object return type in a protocol stands for "callable return value unused/unchecked". I can use _typeshed.Unused instead if that's clearer.

Pull Request Checklist

@Avasam Avasam force-pushed the Type-context-manager-dunders branch from f5eac61 to e7a1b56 Compare August 20, 2024 20:04
@Avasam Avasam changed the title Type context manager dunders Type all context manager dunders Aug 20, 2024
@abravalheri abravalheri merged commit c11cc27 into pypa:main Aug 27, 2024
21 checks passed
@abravalheri
Copy link
Contributor

Thank you very much!

@Avasam Avasam deleted the Type-context-manager-dunders branch August 27, 2024 14:30
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