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
…ythonGH-95393)

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

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 06fc249)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
  • Loading branch information
erlend-aasland authored and miss-islington committed Jul 28, 2022
1 parent 196523f commit a349704
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 @@ after 3.10.0 until 3.10.10?
Released 2023-04-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 a349704

Please sign in to comment.