src/eric7/DebugClients/Python/FlexCompleter.py

branch
eric7-maintenance
changeset 11118
967a88a16a21
parent 11066
d71eab9be477
child 11148
15e30f0c76a8
--- 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

eric ide

mercurial