]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-89610: Add .pyi as a recognised extension for IDLE on macOS (#95393)
authorErlend Egeberg Aasland <erlend.aasland@protonmail.com>
Thu, 28 Jul 2022 23:04:26 +0000 (01:04 +0200)
committerGitHub <noreply@github.com>
Thu, 28 Jul 2022 23:04:26 +0000 (19:04 -0400)
This allows opening stub files by double clicking on them in the Finder.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/NEWS.txt
Mac/IDLE/IDLE.app/Contents/Info.plist
Misc/NEWS.d/next/IDLE/2022-07-28-18-56-57.gh-issue-89610.hcosiM.rst [new file with mode: 0644]

index 05308a0b114af1df8d738c7cc9ae414114d1c3d2..ffb090aa45a465f759b2206d0a69ed1acc70e4ed 100644 (file)
@@ -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.
index d197c77ed4b1a3e6b1cac1fb1c7ffe4f25cd7442..799a164cbdf2ed72ffed9897c765f49162402ccd 100644 (file)
@@ -10,6 +10,7 @@
                        <key>CFBundleTypeExtensions</key>
                        <array>
                                <string>py</string>
+                               <string>pyi</string>
                                <string>pyw</string>
                        </array>
                        <key>CFBundleTypeIconFile</key>
diff --git a/Misc/NEWS.d/next/IDLE/2022-07-28-18-56-57.gh-issue-89610.hcosiM.rst b/Misc/NEWS.d/next/IDLE/2022-07-28-18-56-57.gh-issue-89610.hcosiM.rst
new file mode 100644 (file)
index 0000000..0d28371
--- /dev/null
@@ -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.