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

Enforce ruff/flake8-2020 rule (YTT301) #264

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Conversation

DimitriPapadopoulos
Copy link
Contributor

YTT301 `sys.version[0]` referenced (python10), use `sys.version_info`

The Python documentation discourages the use of sys.version:

Do not extract version information out of it, rather, use version_info and the functions provided by the platform module.

YTT301 `sys.version[0]` referenced (python10), use `sys.version_info`

The Python documentation discourages the use of `sys.version`:
	Do not extract version information out of it, rather,
	use `version_info` and [...]
@jaraco jaraco merged commit 0107b07 into pypa:main Aug 27, 2024
19 of 21 checks passed
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