Skip to content

Commit 309c8f3

Browse files
gh-89610: Add .pyi as a recognised extension for IDLE on macOS (GH-95393)
This allows opening stub files by double clicking on them in the Finder. Co-authored-by: Terry Jan Reedy <[email protected]> (cherry picked from commit 06fc249) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
1 parent b50f58e commit 309c8f3

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Lib/idlelib/NEWS.txt

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ What's New in IDLE 3.11.0
33
Released on 2022-10-03
44
=========================
55

6+
gh-89610: Add .pyi as a recognized extension for IDLE on macOS. This allows
7+
opening stub files by double clicking on them in the Finder.
68

79
bpo-28950: Apply IDLE syntax highlighting to `.pyi` files. Add util.py
810
for common components. Patch by Alex Waygood and Terry Jan Reedy.

Mac/IDLE/IDLE.app/Contents/Info.plist

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<key>CFBundleTypeExtensions</key>
1111
<array>
1212
<string>py</string>
13+
<string>pyi</string>
1314
<string>pyw</string>
1415
</array>
1516
<key>CFBundleTypeIconFile</key>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Add .pyi as a recognized extension for IDLE on macOS. This allows opening
2+
stub files by double clicking on them in the Finder.

0 commit comments

Comments
 (0)