From c0992425f0997813839913cf3bb7d6bb7d051200 Mon Sep 17 00:00:00 2001 From: brandon Date: Sat, 7 Mar 2026 03:08:42 -0500 Subject: [PATCH 1/4] Added py.typed to pyghidra --- Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/py.typed | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/py.typed diff --git a/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/py.typed b/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/py.typed new file mode 100644 index 0000000000..e69de29bb2 From 35ac32e3427578b588f070f2dbc9cde54f268c42 Mon Sep 17 00:00:00 2001 From: Ryan Kurtz Date: Mon, 9 Mar 2026 08:36:42 -0400 Subject: [PATCH 2/4] GP-0: Certify and README update --- Ghidra/Features/PyGhidra/certification.manifest | 1 + Ghidra/Features/PyGhidra/src/main/py/README.md | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Ghidra/Features/PyGhidra/certification.manifest b/Ghidra/Features/PyGhidra/certification.manifest index ebf8c62a6c..da605c1ad4 100644 --- a/Ghidra/Features/PyGhidra/certification.manifest +++ b/Ghidra/Features/PyGhidra/certification.manifest @@ -17,3 +17,4 @@ src/main/py/LICENSE||GHIDRA||||END| src/main/py/MANIFEST.in||GHIDRA||||END| src/main/py/README.md||GHIDRA||||END| src/main/py/pyproject.toml||GHIDRA||||END| +src/main/py/src/pyghidra/py.typed||GHIDRA||||END| diff --git a/Ghidra/Features/PyGhidra/src/main/py/README.md b/Ghidra/Features/PyGhidra/src/main/py/README.md index 51b91b874e..94d12d5288 100644 --- a/Ghidra/Features/PyGhidra/src/main/py/README.md +++ b/Ghidra/Features/PyGhidra/src/main/py/README.md @@ -575,6 +575,9 @@ __3.1.0__ `support/launch.properties` file. * `ghidra_launch.py` now correctly prioritizes user-defined JVM properties higher than those defined in `support/launch.properties`. +* PyGhidra now includes a + [`py.typed`](https://typing.python.org/en/latest/spec/distributing.html#packaging-type-information) + marker file to inform type checkers that typing is supported. __3.0.2__ * Fixed an issue that prevented [`pyghidra.analysis_properties()`](#pyghidraanalysis_properties) From 49839645c7e25830f83acde6030bef48e7536c5d Mon Sep 17 00:00:00 2001 From: fcrwr <262846459+fcrwr@users.noreply.github.com> Date: Sat, 7 Mar 2026 21:14:58 +0500 Subject: [PATCH 3/4] Fix incorrect overriding of showsyntaxerror in PyConsole --- .../src/main/py/src/pyghidra/internal/plugin/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/internal/plugin/plugin.py b/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/internal/plugin/plugin.py index b19cc0f06d..76d1e93c56 100644 --- a/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/internal/plugin/plugin.py +++ b/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/internal/plugin/plugin.py @@ -291,9 +291,9 @@ class PyConsole(InteractiveConsole): finally: self._writer = self._out - def showsyntaxerror(self, filename=None): + def showsyntaxerror(self, filename=None, **kwargs): with self.redirect_writer(): - super().showsyntaxerror(filename=filename) + super().showsyntaxerror(filename=filename, **kwargs) def showtraceback(self) -> None: with self.redirect_writer(): From 6f8100e585f2ae806c8163fbf11a8af7e2df4512 Mon Sep 17 00:00:00 2001 From: Ryan Kurtz Date: Mon, 9 Mar 2026 09:03:57 -0400 Subject: [PATCH 4/4] GP-0: README update --- Ghidra/Features/PyGhidra/src/main/py/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Ghidra/Features/PyGhidra/src/main/py/README.md b/Ghidra/Features/PyGhidra/src/main/py/README.md index 94d12d5288..417173af38 100644 --- a/Ghidra/Features/PyGhidra/src/main/py/README.md +++ b/Ghidra/Features/PyGhidra/src/main/py/README.md @@ -578,6 +578,7 @@ __3.1.0__ * PyGhidra now includes a [`py.typed`](https://typing.python.org/en/latest/spec/distributing.html#packaging-type-information) marker file to inform type checkers that typing is supported. +* The PyGhidra interactive console no longer restarts when a `SyntaxError` occurs. __3.0.2__ * Fixed an issue that prevented [`pyghidra.analysis_properties()`](#pyghidraanalysis_properties)