Debian Codegraph @

src/Base/BaseClass.pyi

raw
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2
3 from Metadata import constmethod
4 from PyObjectBase import PyObjectBase
5 from typing import List, Final
6
7 class BaseClass(PyObjectBase):
8 """
9 This is the base class
10
11 Author: Juergen Riegel ([email protected])
12 Licence: LGPL
13 """
14
15 TypeId: Final[str] = ""
16 """Is the type of the FreeCAD object with module domain"""
17
18 Module: Final[str] = ""
19 """Module in which this class is defined"""
20
21 @constmethod
22 def isDerivedFrom(self, typeName: str) -> bool:
23 """
24 Returns true if given type is a father
25 """
26 ...
27
28 @constmethod
29 def getAllDerivedFrom(self) -> List[object]:
30 """
31 Returns all descendants
32 """
33 ...