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 target_versions for FileMode #142

Merged
merged 1 commit into from
Jan 30, 2022
Merged

Conversation

JelleZijlstra
Copy link
Contributor

Fixes #141

Copy link
Contributor

@asottile asottile left a comment

Choose a reason for hiding this comment

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

I'm still not convinced this is correct -- the change in types appears to be a mistake in black

@@ -414,14 +414,14 @@ def test_integration_multiple_target_version(tmpdir):
'def very_very_long_function_name(\n'
' very_very_very_very_very_very,\n'
' very_very_very_very_very_very,\n'
' *long_long_long_long_long_long\n'
' *long_long_long_long_long_long,\n'
Copy link
Contributor

Choose a reason for hiding this comment

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

this no longer demonstrates the behaviour that the option is honored -- the test would "pass" even if no options were being forwarded along

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's true, I think I should pass an early-py3 target version instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed by using py35

@asottile asottile merged commit 13141c4 into adamchainz:master Jan 30, 2022
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.

Error with black==22.1.0
2 participants