From ee2c866346614587d9710d6908e3a2131a1b319b Mon Sep 17 00:00:00 2001 From: Erlend Egeberg Aasland Date: Fri, 29 Jul 2022 01:04:26 +0200 Subject: [PATCH] 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 (cherry picked from commit 06fc249135e5b98a74fc0213e157e80412354659) Co-authored-by: Erlend Egeberg Aasland --- Lib/idlelib/NEWS.txt | 2 ++ Mac/IDLE/IDLE.app/Contents/Info.plist | 1 + .../next/IDLE/2022-07-28-18-56-57.gh-issue-89610.hcosiM.rst | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 Misc/NEWS.d/next/IDLE/2022-07-28-18-56-57.gh-issue-89610.hcosiM.rst diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index 05308a0b114af1..ffb090aa45a465 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -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. diff --git a/Mac/IDLE/IDLE.app/Contents/Info.plist b/Mac/IDLE/IDLE.app/Contents/Info.plist index d197c77ed4b1a3..799a164cbdf2ed 100644 --- a/Mac/IDLE/IDLE.app/Contents/Info.plist +++ b/Mac/IDLE/IDLE.app/Contents/Info.plist @@ -10,6 +10,7 @@ CFBundleTypeExtensions py + pyi pyw CFBundleTypeIconFile 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 index 00000000000000..0d283711e3e867 --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/2022-07-28-18-56-57.gh-issue-89610.hcosiM.rst @@ -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.