src/eric7/DebugClients/Python/FlexCompleter.py

branch
eric7
changeset 11066
d71eab9be477
parent 11047
783fc3de315e
child 11148
15e30f0c76a8
diff -r 381afdad9614 -r d71eab9be477 src/eric7/DebugClients/Python/FlexCompleter.py
--- a/src/eric7/DebugClients/Python/FlexCompleter.py	Sat Nov 30 15:52:42 2024 +0100
+++ b/src/eric7/DebugClients/Python/FlexCompleter.py	Sat Nov 30 17:47:23 2024 +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

eric ide

mercurial