diff --git a/documentation/conf.py b/documentation/conf.py index ba88b25a8d..0297c08ef8 100644 --- a/documentation/conf.py +++ b/documentation/conf.py @@ -567,7 +567,8 @@ def process_signature( return # only apply in the amici.amici module - if name.split(".")[1] != "amici": + split_name = name.split(".") + if len(split_name) < 2 or split_name[1] != "amici": return signature = fix_typehints(signature)