Looks like python-language-server is somewhat broken.
I asked to rename a function that was in another module and it completely destroyed my code -- including removing large if sequences.
I know the code isn't pretty but... heck.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!