From 210fb8aa01499cfd8a321a2b68bdf957d01c93ea Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Thu, 28 Jul 2022 18:51:29 +0200 Subject: [PATCH 1/5] gh-89610: Add .pyi as a recognised extension for IDLE on macOS --- Mac/IDLE/IDLE.app/Contents/Info.plist | 1 + 1 file changed, 1 insertion(+) 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 From 204e67e552f78e590b58b55bdaa9ef5e196e5460 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Thu, 28 Jul 2022 18:58:58 +0200 Subject: [PATCH 2/5] Add NEWS --- Lib/idlelib/NEWS.txt | 1 + .../next/IDLE/2022-07-28-18-56-57.gh-issue-28950.hcosiM.rst | 1 + 2 files changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/IDLE/2022-07-28-18-56-57.gh-issue-28950.hcosiM.rst diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index 05308a0b114af1..57b9d8aaa9a1b1 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -3,6 +3,7 @@ What's New in IDLE 3.11.0 Released on 2022-10-03 ========================= +gh-28950: IDLE on macOS now recognise ``.pyi`` extensions. 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/Misc/NEWS.d/next/IDLE/2022-07-28-18-56-57.gh-issue-28950.hcosiM.rst b/Misc/NEWS.d/next/IDLE/2022-07-28-18-56-57.gh-issue-28950.hcosiM.rst new file mode 100644 index 00000000000000..cca769bae5ea21 --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/2022-07-28-18-56-57.gh-issue-28950.hcosiM.rst @@ -0,0 +1 @@ +IDLE on macOS now recognise ``.pyi`` extensions. From 423b40a7b90b9157479f8a574fc63cd765dc8f3f Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Thu, 28 Jul 2022 19:20:12 +0200 Subject: [PATCH 3/5] Fix issue nr --- Lib/idlelib/NEWS.txt | 2 +- ...hcosiM.rst => 2022-07-28-18-56-57.gh-issue-89610.hcosiM.rst} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename Misc/NEWS.d/next/IDLE/{2022-07-28-18-56-57.gh-issue-28950.hcosiM.rst => 2022-07-28-18-56-57.gh-issue-89610.hcosiM.rst} (100%) diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index 57b9d8aaa9a1b1..fefa25b7c1edc1 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -3,7 +3,7 @@ What's New in IDLE 3.11.0 Released on 2022-10-03 ========================= -gh-28950: IDLE on macOS now recognise ``.pyi`` extensions. +gh-89610: IDLE on macOS now recognise `.pyi` extensions. 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/Misc/NEWS.d/next/IDLE/2022-07-28-18-56-57.gh-issue-28950.hcosiM.rst b/Misc/NEWS.d/next/IDLE/2022-07-28-18-56-57.gh-issue-89610.hcosiM.rst similarity index 100% rename from Misc/NEWS.d/next/IDLE/2022-07-28-18-56-57.gh-issue-28950.hcosiM.rst rename to Misc/NEWS.d/next/IDLE/2022-07-28-18-56-57.gh-issue-89610.hcosiM.rst From 061114eaced803a59b9d82305d1c4b65148f35df Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Thu, 28 Jul 2022 17:24:03 -0400 Subject: [PATCH 4/5] Update Lib/idlelib/NEWS.txt --- Lib/idlelib/NEWS.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index fefa25b7c1edc1..ffb090aa45a465 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -3,7 +3,8 @@ What's New in IDLE 3.11.0 Released on 2022-10-03 ========================= -gh-89610: IDLE on macOS now recognise `.pyi` extensions. +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. From da758b508993549f9ef5a02d9a696fc4cbaf3cb0 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Thu, 28 Jul 2022 17:24:09 -0400 Subject: [PATCH 5/5] Update Misc/NEWS.d/next/IDLE/2022-07-28-18-56-57.gh-issue-89610.hcosiM.rst --- .../next/IDLE/2022-07-28-18-56-57.gh-issue-89610.hcosiM.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 index cca769bae5ea21..0d283711e3e867 100644 --- 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 @@ -1 +1,2 @@ -IDLE on macOS now recognise ``.pyi`` extensions. +Add .pyi as a recognized extension for IDLE on macOS. This allows opening +stub files by double clicking on them in the Finder.