File size: 794 Bytes
985c397
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import annotations

from Metadata import constmethod
from PyObjectBase import PyObjectBase
from typing import List, Final

class BaseClass(PyObjectBase):
    """
    This is the base class

    Author: Juergen Riegel (FreeCAD@juergen-riegel.net)
    Licence: LGPL
    """

    TypeId: Final[str] = ""
    """Is the type of the FreeCAD object with module domain"""

    Module: Final[str] = ""
    """Module in which this class is defined"""

    @constmethod
    def isDerivedFrom(self, typeName: str, /) -> bool:
        """
        Returns true if given type is a father
        """
        ...

    @constmethod
    def getAllDerivedFrom(self) -> List[object]:
        """
        Returns all descendants
        """
        ...