Skip to content

Commit 409c350

Browse files
terryjreedyaisk
authored andcommitted
IDLE: Add util and stub example comments (python#113222)
1 parent 0ab09f0 commit 409c350

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
" Example to test recognition of .pyi file as Python source code.
2+
13
class Example:
24
def method(self, argument1: str, argument2: list[int]) -> None: ...

Lib/idlelib/util.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
* warning stuff (pyshell, run).
1414
"""
1515

16-
# .pyw is for Windows; .pyi is for stub files.
17-
py_extensions = ('.py', '.pyw', '.pyi') # Order needed for open/save dialogs.
18-
16+
# .pyw is for Windows; .pyi is for typing stub files.
17+
# The extension order is needed for iomenu open/save dialogs.
18+
py_extensions = ('.py', '.pyw', '.pyi')
1919

2020
if __name__ == '__main__':
2121
from unittest import main

0 commit comments

Comments
 (0)