From 797eb0cbda632637681677db202ba38f469dc72e Mon Sep 17 00:00:00 2001 From: tristanlatr Date: Wed, 3 Apr 2024 10:01:32 -0400 Subject: [PATCH] Try using System.find_object() in System.expandName() so it can better follow aliases. --- pydoctor/model.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pydoctor/model.py b/pydoctor/model.py index 4bec57cf6..e9dd9bfa8 100644 --- a/pydoctor/model.py +++ b/pydoctor/model.py @@ -351,7 +351,12 @@ class E: break nxt = self.system.objForFullName(full_name) if nxt is None: - break + try: + nxt = self.system.find_object(full_name) + except (RecursionError, LookupError): + break + if nxt is None: + break obj = nxt return '.'.join([full_name] + parts[i + 1:])