{{ message }}
Repository navigation
feat: add Python 3.14 support - #7
Merged
Merged
Conversation
…on (python-lsp#690) (cherry picked from commit 44f7eb0)
mfranczel
marked this pull request as ready for review
October 7, 2026 11:28
m1so
approved these changes
Oct 7, 2026
This file contains hidden or 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
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.

Summary
Adds Python 3.14 support by cherry-picking upstream fix python-lsp/python-lsp-server#690 (
44f7eb0).On Python 3.14, the server crashes when a client connects in TCP mode (the mode Deepnote uses):
TypeError: PythonLSPServer.init() got multiple values for argument 'check_parent_process'
This happens because
functools.partialchanged in 3.14. The fix wrapsDELEGATE_CLASSinstaticmethodon 3.14+ only. Older versions don't change.Changes
pylsp/python_lsp.py: 3.14-onlystaticmethod(partial(...))wrapper forDELEGATE_CLASStest/plugins/test_flake8_lint.py: use a Windows-compatible config path in the testCherry-picked unchanged (
-x), so the commit matches upstream's.No breaking changes
requires-pythonis still>=3.9.completion_detail) is untouched.Testing
test_language_server.py::test_missing_messageteardown) is also ondevelopand on 3.11, so it isn't caused by this PR.pylsp --tcpauthenticates and answersinitialize. Before this fix it crashed on connect.Summary by CodeRabbit
Compatibility
Testing
Contributes to BLU-6474