Skip to content

Conversation

@hauntsaninja
Copy link
Collaborator

These are manual changes, we can run pyupgrade equivalents in a later PR

"""The uncompromising code formatter."""
ctx.ensure_object(dict)

assert sys.version_info >= (3, 9), "Black requires Python 3.9+"
Copy link

Choose a reason for hiding this comment

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

Why is this added? This wasn't needed in the __init__.py file for previous minimum versions. Python version requirements are handled by requires-python in pyproject.toml, and that was already correctly changed in this commit.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's harmless enough, Black is definitely broken on 3.8, I have dev environments lying around with random Python versions. Is it causing you some issue?

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.

3 participants