mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
types: Add UncheckedType
This allows us to remember information about an external type, such as its name, while still marking it as unchecked.
This commit is contained in:
parent
f7aa7d0be2
commit
2033bd9e16
7 changed files with 55 additions and 11 deletions
|
@ -53,6 +53,8 @@ class Template(Object):
|
|||
# Templates might not have a parent class defined
|
||||
if class_name := self.class_name:
|
||||
return class_name.gir_type
|
||||
else:
|
||||
return gir.UncheckedType(self.id)
|
||||
|
||||
@validate("id")
|
||||
def unique_in_parent(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue