pyi files are currently treated like .py file because they share the same nvim filetype (python), but they shouldn’t be formatted in the same way. (black does differentiate those two file formats).
I wonder what should be done :
modify neovim to add a python-stubs filetype ? That seem kinda breaking.
Hello,
pyi
files are currently treated like.py
file because they share the same nvimfiletype
(python
), but they shouldn’t be formatted in the same way. (black does differentiate those two file formats).I wonder what should be done :
.pyi
files ?A while ago i created a topic on neovim discourse but had no response : https://neovim.discourse.group/t/how-to-differentiate-pyi-and-py-files/3559