[issue45447] IDLE: Support syntax highlighting for .pyi stub files
Alex Waygood
report at bugs.python.org
Tue Oct 12 15:36:00 EDT 2021
Alex Waygood <Alex.Waygood at Gmail.com> added the comment:
It looks like support for .py files is hardcoded into IDLE's source code in the following places:
* browser.ModuleBrowserTreeItem.OnDoubleClick
* browser.ModuleBrowserTreeItem.IsExpandable
* browser.ModuleBrowserTreeItem.listchildren
* editor.ispythonsource << This is the one that controls syntax highlighting
* iomenu.IOBinding.filetypes
If I were to file a PR adding support for .pyi files, would you prefer that I hardcoded ".pyi" in, or would it be better to add a SUPPORTED_FILES constant somewhere?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45447>
_______________________________________
More information about the Python-bugs-list
mailing list