mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
validation: Disallow instantiating abstract classes
This commit is contained in:
parent
f78478bea1
commit
99e428d93c
17 changed files with 35 additions and 13 deletions
|
@ -33,6 +33,10 @@ class Template(Object):
|
|||
ObjectContent,
|
||||
]
|
||||
|
||||
@validate()
|
||||
def not_abstract(self):
|
||||
pass # does not apply to templates
|
||||
|
||||
def emit_xml(self, xml: XmlEmitter):
|
||||
if self.gir_class:
|
||||
parent = self.gir_class.glib_type_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue