diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-07-28 23:39:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-28 23:39:02 (GMT) |
commit | b9b70dd4de9ff7b3685892f7d36ca44cb54e3861 (patch) | |
tree | 9253b1b051872a6fd3946a9bd083b8c39657c6cb | |
parent | 196523f32b78d49e37ffc98385364f82ac8a87b4 (diff) | |
download | cpython-b9b70dd4de9ff7b3685892f7d36ca44cb54e3861.zip cpython-b9b70dd4de9ff7b3685892f7d36ca44cb54e3861.tar.gz cpython-b9b70dd4de9ff7b3685892f7d36ca44cb54e3861.tar.bz2 |
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 <tjreedy@udel.edu>
(cherry picked from commit 06fc249135e5b98a74fc0213e157e80412354659)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
-rw-r--r-- | Lib/idlelib/NEWS.txt | 2 | ||||
-rw-r--r-- | Mac/IDLE/IDLE.app/Contents/Info.plist | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/IDLE/2022-07-28-18-56-57.gh-issue-89610.hcosiM.rst | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index dcfb120..39e76f9 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -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. diff --git a/Mac/IDLE/IDLE.app/Contents/Info.plist b/Mac/IDLE/IDLE.app/Contents/Info.plist index d197c77..799a164 100644 --- a/Mac/IDLE/IDLE.app/Contents/Info.plist +++ b/Mac/IDLE/IDLE.app/Contents/Info.plist @@ -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 index 0000000..0d28371 --- /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. |