def set_parent(self, parent) -> object:
ret = self<EOL>if parent is not None:<EOL><INDENT>ret = self._sig.set_parent(parent)<EOL>self.resolve()<EOL><DEDENT>elif not hasattr(self, '<STR_LIT>'):<EOL><INDENT>self.parent = None<EOL><DEDENT>return ret<EOL>
When we add a parent (from Symbol), don't forget to resolve.