diff -r c2cb561a39b0 -r 967a88a16a21 src/eric7/DebugClients/Python/FlexCompleter.py --- a/src/eric7/DebugClients/Python/FlexCompleter.py Sat Nov 30 11:09:02 2024 +0100 +++ b/src/eric7/DebugClients/Python/FlexCompleter.py Tue Jan 14 17:29:56 2025 +0100 @@ -83,8 +83,12 @@ @exception TypeError raised to indicate a wrong data structure of the namespace object """ - if namespace and not isinstance(namespace, (dict, sys._getframe().f_locals.__class__)): - raise TypeError("namespace must be a dictionary or since 3.13 a FrameLocalsProxy") + if namespace and not isinstance( + namespace, (dict, sys._getframe().f_locals.__class__) + ): + raise TypeError( + "namespace must be a dictionary or since 3.13 a FrameLocalsProxy" + ) # Don't bind to namespace quite yet, but flag whether the user wants a # specific namespace or to use __main__.__dict__. This will allow us