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

@ -72,7 +72,7 @@ class Signal(AstNode):
@property
def gir_signal(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.signals.get(self.tokens["name"])
@property
@ -90,7 +90,7 @@ class Signal(AstNode):
@validate("name")
def signal_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