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

Add --disable-cache flag #2143

Merged
merged 5 commits into from
Feb 6, 2024
Merged

Add --disable-cache flag #2143

merged 5 commits into from
Feb 6, 2024

Conversation

yifanmai
Copy link
Collaborator

Fixes #2016
Addresses #1914

return None

def get_all(self) -> Generator[Tuple[Dict, Dict], None, None]:
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This return shouldn't be there?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return
yield

is actually correct and typechecks, as explained here. yield alone fails typechecking. Also, mypy is okay with this version, whereas the alternatives suggested in the link fail mypy typechecking.

@yifanmai
Copy link
Collaborator Author

yifanmai commented Feb 6, 2024

@percyliang This is ready for review again.

Copy link
Contributor

@percyliang percyliang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@yifanmai yifanmai merged commit dceb54b into main Feb 6, 2024
6 checks passed
@yifanmai yifanmai deleted the yifanmai/fix-disable-cache branch February 6, 2024 18:14
brianwgoldman pushed a commit that referenced this pull request Feb 6, 2024
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.

Add a flag for disabling caching
2 participants