As stated on this answer, one can check (and set) on settings.json the formatters used by VS Code.
For Python, I use black:
settings.json
...
"python.formatting.provider": "black"
...
I think I found an issue involving black, but I'm only able to reproduce it in VS Code, not when running it from the terminal.
I'd like to know which version (or even better, the location) of the black binary is being used by VS Code. Ideally, I would also like to change it, in order to check on which versions I can (or cannot) reproduce the issue.
What I know for sure is that VS Code is not using the black binary on my path; autoformatting keeps working even if I remove it from the path. ( e.g.: mv /home/sam/.local/bin/black /home/sam/.local/bin/black.bak)
