diff --git a/src/griffe/dataclasses.py b/src/griffe/dataclasses.py index 622a431a..72ba2459 100644 --- a/src/griffe/dataclasses.py +++ b/src/griffe/dataclasses.py @@ -871,6 +871,7 @@ def target(self, value: Object | Alias) -> None: if value is self: raise CyclicAliasError([self.target_path]) self._target = value + self.target_path = value.path if self.parent is not None: self._target.aliases[self.path] = self