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:
James Westman 2022-12-23 20:13:14 -06:00
parent f7aa7d0be2
commit 2033bd9e16
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
7 changed files with 55 additions and 11 deletions

View file

@ -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):