I had the following in my VSCode settings.json, which seemed to cause this problem while saving Python files:
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
The fix for me was to enable this option only for TypeScript:
"[typescript]": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}