Core: Fix Python API name clash: do not expose the App::Part type to Python

Fixes #12539
This commit is contained in:
wmayer
2024-07-13 21:14:31 +02:00
committed by Chris Hennes
parent ceb0447d03
commit ba6dc1fa2d

View File

@@ -110,7 +110,7 @@
#include "SuppressibleExtension.h"
#include "SuppressibleExtensionPy.h"
#include "Part.h"
#include "PartPy.h"
#include "GeoFeaturePy.h"
#include "Placement.h"
#include "ProgramOptionsUtilities.h"
#include "Property.h"
@@ -330,7 +330,6 @@ void Application::setupPythonTypes()
Base::Interpreter().addType(&App::DocumentObjectPy::Type, pAppModule, "DocumentObject");
Base::Interpreter().addType(&App::DocumentObjectGroupPy::Type, pAppModule, "DocumentObjectGroup");
Base::Interpreter().addType(&App::GeoFeaturePy::Type, pAppModule, "GeoFeature");
Base::Interpreter().addType(&App::PartPy::Type, pAppModule, "Part");
// Add extension types
Base::Interpreter().addType(&App::ExtensionPy::Type, pAppModule, "Extension");