-
Notifications
You must be signed in to change notification settings - Fork 104
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
Python 3.9 Modernization #550
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #550 +/- ##
==========================================
- Coverage 88.76% 88.75% -0.02%
==========================================
Files 36 36
Lines 3924 3920 -4
Branches 359 359
==========================================
- Hits 3483 3479 -4
Misses 305 305
Partials 136 136 ☔ View full report in Codecov by Sentry. |
tony
force-pushed
the
python-3.9-futurize
branch
from
December 21, 2024 00:20
700dc2e
to
99cf9d0
Compare
ruff check . --select ALL --fix --unsafe-fixes --preview --show-fixes --ignore T201 --ignore PT014 --ignore RUF100; ruff format .; Fixed 186 errors: - conftest.py: 1 × UP006 (non-pep585-annotation) - docs/conf.py: 6 × UP006 (non-pep585-annotation) - src/libtmux/_internal/query_list.py: 31 × UP006 (non-pep585-annotation) 1 × RUF052 (used-dummy-variable) - src/libtmux/_vendor/version.py: 16 × UP006 (non-pep585-annotation) 8 × RUF052 (used-dummy-variable) 1 × F401 (unused-import) - src/libtmux/common.py: 9 × UP006 (non-pep585-annotation) 1 × F401 (unused-import) - src/libtmux/constants.py: 4 × UP006 (non-pep585-annotation) 1 × F401 (unused-import) - src/libtmux/neo.py: 3 × UP006 (non-pep585-annotation) - src/libtmux/pane.py: 8 × UP006 (non-pep585-annotation) - src/libtmux/pytest_plugin.py: 2 × UP006 (non-pep585-annotation) - src/libtmux/server.py: 19 × UP006 (non-pep585-annotation) - src/libtmux/session.py: 19 × UP006 (non-pep585-annotation) 5 × RUF052 (used-dummy-variable) - src/libtmux/test.py: 3 × UP006 (non-pep585-annotation) - src/libtmux/window.py: 14 × UP006 (non-pep585-annotation) - tests/_internal/test_query_list.py: 5 × UP006 (non-pep585-annotation) - tests/legacy_api/test_server.py: 1 × RUF052 (used-dummy-variable) - tests/legacy_api/test_session.py: 2 × UP006 (non-pep585-annotation) 1 × F401 (unused-import) 1 × RUF052 (used-dummy-variable) - tests/legacy_api/test_version.py: 3 × UP006 (non-pep585-annotation) 1 × TC006 (runtime-cast-value) - tests/legacy_api/test_window.py: 2 × UP006 (non-pep585-annotation) 1 × F401 (unused-import) - tests/test_dataclasses.py: 3 × UP006 (non-pep585-annotation) 3 × RUF052 (used-dummy-variable) - tests/test_server.py: 1 × RUF052 (used-dummy-variable) - tests/test_session.py: 2 × UP006 (non-pep585-annotation) 1 × RUF052 (used-dummy-variable) - tests/test_version.py: 3 × UP006 (non-pep585-annotation) 1 × TC006 (runtime-cast-value) - tests/test_window.py: 2 × UP006 (non-pep585-annotation) 1 × F401 (unused-import) Found 1893 errors (186 fixed, 1707 remaining). 44 files left unchanged
tony
force-pushed
the
python-3.9-futurize
branch
from
December 21, 2024 00:59
99cf9d0
to
f31e331
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In re: #548
With 1.48.0 being the last Python 3.9 release, let's modernize the syntax.
See also