From 48f3f4a3e28240fba5d5a0b82b87c2c4d8d746e5 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 27 Nov 2024 20:37:18 +0800 Subject: [PATCH] generate stubs [#90] --- PyRxCore/PyBrxBimObject.cpp | 2 +- PyRxStubs/PyBrxBim.pyi | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/PyRxCore/PyBrxBimObject.cpp b/PyRxCore/PyBrxBimObject.cpp index 17d290a4..896e3a0a 100644 --- a/PyRxCore/PyBrxBimObject.cpp +++ b/PyRxCore/PyBrxBimObject.cpp @@ -529,7 +529,7 @@ void makeBrxBimBuildingWrapper() .def("getBuilding", &PyBrxBimBuilding::getBuilding, DS.SARGS({ "db: PyDb.Database", "name: str" })).staticmethod("getBuilding") .def("allObjectBuildings", &PyBrxBimBuilding::allObjectBuildings, DS.SARGS({ "db: PyDb.Database" })).staticmethod("allObjectBuildings") .def("allStringBuildings", &PyBrxBimBuilding::allStringBuildings, DS.SARGS({ "db: PyDb.Database" })).staticmethod("allStringBuildings") - .def("allObjectStoriesFromDb", &PyBrxBimBuilding::allObjectStoriesFromDb1, DS.ARGS({ "db: PyDb.Database" }) + .def("allObjectStoriesFromDb", &PyBrxBimBuilding::allObjectStoriesFromDb1, DS.ARGS({ "db: PyDb.Database" })) //TODO alter argument type .def("allObjectStoriesFromDb", &PyBrxBimBuilding::allObjectStoriesFromDb2, DS.SARGS({ "db: PyDb.Database","building: str = None" })).staticmethod("allObjectStoriesFromDb") .def("allStringStoriesFromDb", &PyBrxBimBuilding::allStringStoriesFromDb1, DS.ARGS({ "db: PyDb.Database" })) diff --git a/PyRxStubs/PyBrxBim.pyi b/PyRxStubs/PyBrxBim.pyi index 090074f2..8e665d7e 100644 --- a/PyRxStubs/PyBrxBim.pyi +++ b/PyRxStubs/PyBrxBim.pyi @@ -37,9 +37,7 @@ class BimBuilding(BimSpatialLocation): def allObjectStories (self)-> list : ''' ''' ... - - @staticmethod - def allObjectStoriesFromDb (db: PyDb.Database,building: str = None)-> list : + def allObjectStoriesFromDb (self, db: PyDb.Database)-> list : ''' ''' ... @@ -50,9 +48,7 @@ class BimBuilding(BimSpatialLocation): def allStringStories (self)-> list : ''' ''' ... - - @staticmethod - def allStringStoriesFromDb (db: PyDb.Database,building: str = None)-> list : + def allStringStoriesFromDb (self, db: PyDb.Database)-> list : ''' ''' ... def assignToEntity (self, id: PyDb.ObjectId)-> None : @@ -92,7 +88,10 @@ class BimBuilding(BimSpatialLocation): def deleteBuildingFromDb (db: PyDb.Database,name: str)-> None : ''' ''' ... - def deleteStory (self)-> PyBrxBim.BimObjectType : + def deleteStoryObject (self, story: PyBrxBim.BimStory)-> None : + ''' ''' + ... + def deleteStoryString (self, story: str)-> None : ''' ''' ... def description (self)-> str : @@ -127,6 +126,9 @@ class BimBuilding(BimSpatialLocation): def setNull (self)-> None : ''' ''' ... + def typeDesc (self)-> PyBrxBim.BimObjectType : + ''' ''' + ... def typeName (self)-> str : ''' ''' ...