From 193060908aa1cecb9931553abbb0f9fa182c66a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Wed, 10 Jul 2024 21:15:57 +0200 Subject: [PATCH] fix: Don't take a shortcut to the end of an alias chain when getting/setting/deleting alias members --- src/_griffe/models.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/_griffe/models.py b/src/_griffe/models.py index d7724005..8f5b911c 100644 --- a/src/_griffe/models.py +++ b/src/_griffe/models.py @@ -1250,15 +1250,6 @@ def resolve(self, name: str) -> str: """ return self.final_target.resolve(name) - def get_member(self, key: str | Sequence[str]) -> Object | Alias: # noqa: D102 - return self.final_target.get_member(key) - - def set_member(self, key: str | Sequence[str], value: Object | Alias) -> None: # noqa: D102 - return self.final_target.set_member(key, value) - - def del_member(self, key: str | Sequence[str]) -> None: # noqa: D102 - return self.final_target.del_member(key) - # SPECIFIC MODULE/CLASS/FUNCTION/ATTRIBUTE PROXIES --------------- # These methods and properties exist on targets of specific kind. # We first try to reach the final target, trigerring alias resolution errors