Skip to content

Commit fbaf00e

Browse files
[3.11] IDLE: Add util and stub example comments (GH-113222) (#113224)
(cherry picked from commit cde1335) Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent 11401e2 commit fbaf00e

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)