mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
[3.12] IDLE: Add util and stub example comments (GH-113222) (#113223)
(cherry picked from commit cde1335485
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
3bfe2b6c2a
commit
f7cacc43f5
2 changed files with 5 additions and 3 deletions
|
@ -1,2 +1,4 @@
|
||||||
|
" Example to test recognition of .pyi file as Python source code.
|
||||||
|
|
||||||
class Example:
|
class Example:
|
||||||
def method(self, argument1: str, argument2: list[int]) -> None: ...
|
def method(self, argument1: str, argument2: list[int]) -> None: ...
|
||||||
|
|
|
@ -13,9 +13,9 @@ TODO:
|
||||||
* warning stuff (pyshell, run).
|
* warning stuff (pyshell, run).
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# .pyw is for Windows; .pyi is for stub files.
|
# .pyw is for Windows; .pyi is for typing stub files.
|
||||||
py_extensions = ('.py', '.pyw', '.pyi') # Order needed for open/save dialogs.
|
# The extension order is needed for iomenu open/save dialogs.
|
||||||
|
py_extensions = ('.py', '.pyw', '.pyi')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
from unittest import main
|
from unittest import main
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue