Skip to content

Conversation

@MeGaGiGaGon
Copy link
Contributor

Summary

Per @ntBre in #19111, it would be a good idea to make the tests no longer have these syntax errors, so this PR updates the tests and snapshots.

B031 gave me a lot of trouble since the ending test of declaring a function named groupby makes it so that inside other functions, it's unclear which groupby is referred to since it depends on when the function is called. To fix it I made each function have it's own from itertools import groupby so there's no more ambiguity.

Test Plan

Updated tests and snapshots.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 3, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Copy link
Collaborator

@dylwil3 dylwil3 left a comment

Choose a reason for hiding this comment

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

thank you and good catch on B031!

@dylwil3 dylwil3 merged commit a33cff2 into astral-sh:main Jul 4, 2025
35 checks passed
@MeGaGiGaGon MeGaGiGaGon deleted the fix-F701-to-F707-errors-in-tests branch July 4, 2025 18:43
@dylwil3 dylwil3 added the internal An internal refactor or improvement label Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants