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

Fix issues with ruff 0.5.7 #144

Merged
merged 1 commit into from
Aug 10, 2024
Merged

Fix issues with ruff 0.5.7 #144

merged 1 commit into from
Aug 10, 2024

Conversation

alexfikl
Copy link
Collaborator

@alexfikl alexfikl commented Aug 9, 2024

No description provided.

Comment on lines +1066 to 1072
key = (expr, *args)
try:
return ccd[(expr, *args)]
return ccd[key]
except KeyError:
result = self.map_common_subexpression_uncached(expr, *args)
ccd[(expr, *args)] = result
ccd[key] = result
return result
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This looks like a bug in ruff: doing ccd[expr, *args] isn't allowed in Python 3.8, but they still flag it as an issue..

@inducer inducer merged commit 37a8f26 into inducer:main Aug 10, 2024
9 checks passed
@inducer
Copy link
Owner

inducer commented Aug 10, 2024

Thx!

@alexfikl alexfikl deleted the fix-ruff branch August 10, 2024 16:21
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