Skip to content

fix code action for Call to deprecated overload contextlib.contextmanager #4245#4281

Open
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:4245
Open

fix code action for Call to deprecated overload contextlib.contextmanager #4245#4281
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:4245

Conversation

@asukaminato0721

Copy link
Copy Markdown
Collaborator

Summary

Fixes #4245

Adds a quick fix replacing Iterator with Generator, including the required import.
Supports qualified annotations such as typing.Iterator.
Also supports the equivalent AsyncIterator -> AsyncGenerator deprecation.

Test Plan

add test

@github-actions

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

code action for Call to deprecated overload contextlib.contextmanager

1 participant