Normally black alters its functionality based on the file extension.
Typing stub files (*.pyi) are formatted using different rules from
regular python files.
We're piping in the file from stdin, so black can't detect pyi files
itself. This makes sure that black is able to format pyi files
according to the proper rules.
Normally black alters its functionality based on the file extension. Typing stub files (*.pyi) are formatted using different rules from regular python files.
We're piping in the file from stdin, so black can't detect pyi files itself. This makes sure that black is able to format pyi files according to the proper rules.