Fix template types

This commit is contained in:
James Westman 2023-03-28 10:41:42 -05:00
parent 64879491a1
commit 88f5b4f1c7
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
14 changed files with 120 additions and 21 deletions

View file

@ -46,7 +46,7 @@ class Property(AstNode):
@property
def gir_property(self):
if self.gir_class is not None and not isinstance(self.gir_class, UncheckedType):
if self.gir_class is not None and not isinstance(self.gir_class, ExternType):
return self.gir_class.properties.get(self.tokens["name"])
@context(ValueTypeCtx)
@ -75,7 +75,7 @@ class Property(AstNode):
@validate("name")
def property_exists(self):
if self.gir_class is None or isinstance(self.gir_class, UncheckedType):
if self.gir_class is None or self.gir_class.incomplete:
# Objects that we have no gir data on should not be validated
# This happens for classes defined by the app itself
return