We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11401e2 commit fbaf00eCopy full SHA for fbaf00e
Lib/idlelib/idle_test/example_stub.pyi
@@ -1,2 +1,4 @@
1
+" Example to test recognition of .pyi file as Python source code.
2
+
3
class Example:
4
def method(self, argument1: str, argument2: list[int]) -> None: ...
Lib/idlelib/util.py
@@ -13,9 +13,9 @@
13
* warning stuff (pyshell, run).
14
"""
15
16
-# .pyw is for Windows; .pyi is for stub files.
17
-py_extensions = ('.py', '.pyw', '.pyi') # Order needed for open/save dialogs.
18
-
+# .pyw is for Windows; .pyi is for typing stub files.
+# The extension order is needed for iomenu open/save dialogs.
+py_extensions = ('.py', '.pyw', '.pyi')
19
20
if __name__ == '__main__':
21
from unittest import main
0 commit comments