Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Lib/idlelib/idle_test/example_stub.pyi
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
" Example to test recognition of .pyi file as Python source code.

class Example:
def method(self, argument1: str, argument2: list[int]) -> None: ...
6 changes: 3 additions & 3 deletions Lib/idlelib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
* warning stuff (pyshell, run).
"""

# .pyw is for Windows; .pyi is for stub files.
py_extensions = ('.py', '.pyw', '.pyi') # Order needed for open/save dialogs.

# .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')

if __name__ == '__main__':
from unittest import main
Expand Down