From 09e8eed06cfabb7036889f8ddbba85b77bd17979 2024-10-21 16:24:19 From: Patterson, Kevin R Date: 2024-10-21 16:24:19 Subject: [PATCH] suggested fix for autocall failure --- diff --git a/IPython/core/prefilter.py b/IPython/core/prefilter.py index a29df0c..fc7b1c3 100644 --- a/IPython/core/prefilter.py +++ b/IPython/core/prefilter.py @@ -512,8 +512,10 @@ class AutocallChecker(PrefilterChecker): callable(oinfo.obj) and (not self.exclude_regexp.match(line_info.the_rest)) and self.function_name_regexp.match(line_info.ifun) - and line_info.raw_the_rest.startswith(" ") - or not line_info.raw_the_rest.strip() + and ( + line_info.raw_the_rest.startswith(" ") + or not line_info.raw_the_rest.strip() + ) ): return self.prefilter_manager.get_handler_by_name("auto") else: