Skip to content

Commit

Permalink
pythongh-89610: Add .pyi as a recognised extension for IDLE on macOS (p…
Browse files Browse the repository at this point in the history
…ython#95393)

This allows opening stub files by double clicking on them in the Finder.

Co-authored-by: Terry Jan Reedy <[email protected]>
  • Loading branch information
erlend-aasland and terryjreedy authored Jul 28, 2022
1 parent edb7204 commit 06fc249
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/idlelib/NEWS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ What's New in IDLE 3.11.0
Released on 2022-10-03
=========================

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

bpo-28950: Apply IDLE syntax highlighting to `.pyi` files. Add util.py
for common components. Patch by Alex Waygood and Terry Jan Reedy.
Expand Down
1 change: 1 addition & 0 deletions Mac/IDLE/IDLE.app/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<key>CFBundleTypeExtensions</key>
<array>
<string>py</string>
<string>pyi</string>
<string>pyw</string>
</array>
<key>CFBundleTypeIconFile</key>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add .pyi as a recognized extension for IDLE on macOS. This allows opening
stub files by double clicking on them in the Finder.

0 comments on commit 06fc249

Please sign in to comment.