Passing filename / extension when using stdin to support .pyi
files w/ black
#1596
Labels
Milestone
.pyi
files w/ black
#1596
With the black profile, not sure about others, formatting is dependent on the extension.
When using stdin to format a file the extension information isn't passed along,
so there isn't a way to format
.pyi
files the same as when passing the file path.Example
example file
main.pyi
:No changes necessary.
and via stdin
conclusion
I think one solution is to specify the extension manually, or give isort a fake
filename to use.
rel: #942
rel: microsoft/vscode-python#14702
The text was updated successfully, but these errors were encountered: