From aacf8f50bfaaa4b9b0a4600c2d13d9771d308f11 Mon Sep 17 00:00:00 2001
From: Seth Hillbrand <seth@kipro-pcb.com>
Date: Wed, 31 May 2023 15:54:43 -0700
Subject: [PATCH] Remove unneeded headers from pcbnew_scripting_helpers.h

---
 pcbnew/exporters/gerber_jobfile_writer.h           | 2 +-
 pcbnew/python/scripting/pcbnew_scripting_helpers.h | 8 +++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/pcbnew/exporters/gerber_jobfile_writer.h b/pcbnew/exporters/gerber_jobfile_writer.h
index d51126a3cd..d9f7d6c7b3 100644
--- a/pcbnew/exporters/gerber_jobfile_writer.h
+++ b/pcbnew/exporters/gerber_jobfile_writer.h
@@ -30,7 +30,7 @@
 #ifndef GERBER_JOBFILE_WRITER_H
 #define GERBER_JOBFILE_WRITER_H
 
-#include <nlohmann/json_fwd.hpp>
+#include <nlohmann/json.hpp>
 
 
 // A helper enum to handle sides of some layers (silk, mask)
diff --git a/pcbnew/python/scripting/pcbnew_scripting_helpers.h b/pcbnew/python/scripting/pcbnew_scripting_helpers.h
index 1d522dd02f..08140283eb 100644
--- a/pcbnew/python/scripting/pcbnew_scripting_helpers.h
+++ b/pcbnew/python/scripting/pcbnew_scripting_helpers.h
@@ -25,9 +25,15 @@
 #ifndef __PCBNEW_SCRIPTING_HELPERS_H
 #define __PCBNEW_SCRIPTING_HELPERS_H
 
-#include <pcb_edit_frame.h>
+#include <deque>
 #include <io_mgr.h>
 
+class PCB_EDIT_FRAME;
+class BOARD;
+class SETTINGS_MANAGER;
+class BOARD_ITEM;
+enum class EDA_UNITS;
+
 /* we could be including all these methods as static in a class, but
  * we want plain pcbnew.<method_name> access from python
  */