FYI, there is an active fork that works with Python 3.11 https://github.com/python-lsp/python-lsp-server