Core: Prevent circular dependency on imports

This commit is contained in:
Mike Auty
2022-07-03 22:45:11 +01:00
parent 7dc330fb47
commit 3679134f01
+1 -2
View File
@@ -243,11 +243,10 @@ class ObjectInterface(metaclass = abc.ABCMeta):
@classmethod
@abc.abstractmethod
def child_template(cls, template: 'Template', child: str) -> interfaces.objects.Template:
def child_template(cls, template: 'Template', child: str) -> 'interfaces.objects.Template':
"""Returns the template of the child member from the parent."""
raise KeyError(f"Template does not contain any children: {template.vol.type_name}")
@classmethod
@abc.abstractmethod
def has_member(cls, template: 'Template', member_name: str) -> bool: