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

Support single tuple versioned block fixer #517

Conversation

UnknownPlatypus
Copy link
Contributor

Fixes #509

I intentionally skipped 0-length tuple because it's most likely not intentional and removing code based on that would be surprising I think.

@UnknownPlatypus UnknownPlatypus force-pushed the support-single-tuple-versioned-block-fixer branch from e27adbb to 2ac3a8b Compare December 15, 2024 17:10
src/django_upgrade/ast.py Outdated Show resolved Hide resolved
CHANGELOG.rst Outdated Show resolved Hide resolved
@adamchainz adamchainz force-pushed the support-single-tuple-versioned-block-fixer branch from 00db405 to 9ff3fe2 Compare February 6, 2025 22:21
@adamchainz
Copy link
Owner

I intentionally skipped 0-length tuple because it's most likely not intentional and removing code based on that would be surprising I think.

Indeed!

@adamchainz adamchainz merged commit 6517458 into adamchainz:main Feb 6, 2025
8 checks passed
@UnknownPlatypus UnknownPlatypus deleted the support-single-tuple-versioned-block-fixer branch February 6, 2025 23:46
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.

Extend version block remover to single tuples
2 participants