From f9a6b575de1acbdcfee0dd4826671fbe2a41db2b Mon Sep 17 00:00:00 2001 From: Ryan Kurtz Date: Tue, 14 Jan 2025 09:17:56 -0500 Subject: [PATCH] GP-0: importing typing into PyGhidraBasics.py --- Ghidra/Features/PyGhidra/ghidra_scripts/PyGhidraBasics.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Ghidra/Features/PyGhidra/ghidra_scripts/PyGhidraBasics.py b/Ghidra/Features/PyGhidra/ghidra_scripts/PyGhidraBasics.py index f60655d807..242613c6cd 100644 --- a/Ghidra/Features/PyGhidra/ghidra_scripts/PyGhidraBasics.py +++ b/Ghidra/Features/PyGhidra/ghidra_scripts/PyGhidraBasics.py @@ -17,6 +17,9 @@ # @category: Examples.Python # @runtime PyGhidra +import typing +if typing.TYPE_CHECKING: + from ghidra.ghidra_builtins import * # we can import java libraries just as if they were python libraries from java.util import LinkedList