Debian Codegraph @

src/App/ExtensionContainer.pyi

raw
1 from Base.Metadata import export, constmethod
2 from PropertyContainer import PropertyContainer
3
4
5 @export(
6 Initialization=True,
7 Constructor=True,
8 )
9 class ExtensionContainer(PropertyContainer):
10 """
11 Base class for all objects which can be extended
12 Author: Stefan Troeger ([email protected])
13 Licence: LGPL
14 """
15
16 def addExtension(self, identifier: str) -> None:
17 """
18 Adds an extension to the object. Requires the string identifier for the python extension as argument
19 """
20 ...
21
22 @constmethod
23 def hasExtension(self, identifier: str) -> bool:
24 """
25 Returns if this object has the specified extension
26 """
27 ...