src/eric7/DebugClients/Python/DebugVariables.py

branch
eric7-maintenance
changeset 10460
3b34efa2857c
parent 10439
21c28b0f9e41
child 11090
f5f5f5803935
--- a/src/eric7/DebugClients/Python/DebugVariables.py	Sun Dec 03 14:54:00 2023 +0100
+++ b/src/eric7/DebugClients/Python/DebugVariables.py	Mon Jan 01 11:10:45 2024 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2016 - 2023 Detlev Offenbach <detlev@die-offenbachs.de>
+# Copyright (c) 2016 - 2024 Detlev Offenbach <detlev@die-offenbachs.de>
 #
 
 """
@@ -38,11 +38,11 @@
         Public method to get an attribute from a variable.
 
         @param var variable to extract an attribute or value from
-        @type any
+        @type Any
         @param attribute name of the attribute to extract
         @type str
         @return value of the attribute
-        @rtype any
+        @rtype Any
         """
         return getattr(var, attribute, None)
 
@@ -51,7 +51,7 @@
         Public method to get the attributes of a variable as a list.
 
         @param var variable to be converted
-        @type any
+        @type Any
         @return list containing the variable attributes
         @rtype list
         """
@@ -85,7 +85,7 @@
         Public method to get the attributes of a variable as a list.
 
         @param var variable to be converted
-        @type any
+        @type Any
         @yield tuple containing the batch start index and a list
             containing the variable attributes
         @ytype tuple of (int, list)
@@ -116,7 +116,7 @@
         @param attribute name of the attribute to extract
         @type str
         @return value of the attribute
-        @rtype any
+        @rtype Any
         """
         if " (ID:" not in attribute:
             try:
@@ -136,7 +136,7 @@
         Public method to get a string representation for a key.
 
         @param key key to be converted
-        @type any
+        @type Any
         @return string representation of the given key
         @rtype str
         """
@@ -154,7 +154,7 @@
         Public method to get the attributes of a variable as a list.
 
         @param var variable to be converted
-        @type any
+        @type Any
         @yield tuple containing the batch start index and a list
             containing the variable attributes
         @ytype tuple of (int, list)
@@ -209,7 +209,7 @@
         @param attribute name of the attribute to extract
         @type str
         @return value of the attribute
-        @rtype any
+        @rtype Any
         """
         try:
             return var[int(attribute)]
@@ -221,7 +221,7 @@
         Public method to get the attributes of a variable as a list.
 
         @param var variable to be converted
-        @type any
+        @type Any
         @yield tuple containing the batch start index and a list
             containing the variable attributes
         @ytype tuple of (int, list)
@@ -267,7 +267,7 @@
         @param attribute id of the value to extract
         @type str
         @return value of the attribute
-        @rtype any
+        @rtype Any
         """
         return super().resolve(list(var), attribute)
 
@@ -276,7 +276,7 @@
         Public method to get the attributes of a variable as a list.
 
         @param var variable to be converted
-        @type any
+        @type Any
         @yield tuple containing the batch start index and a list
             containing the variable attributes
         @ytype tuple of (int, list)
@@ -303,7 +303,7 @@
         @param attribute id of the value to extract
         @type str
         @return value of the attribute
-        @rtype any
+        @rtype Any
         """
         if attribute.startswith("'ID: "):
             attribute = attribute.split(None, 1)[1][:-1]
@@ -323,7 +323,7 @@
         Public method to get the attributes of a variable as a list.
 
         @param var variable to be converted
-        @type any
+        @type Any
         @yield tuple containing the batch start index and a list
             containing the variable attributes
         @ytype tuple of (int, list)
@@ -383,7 +383,7 @@
         @param attribute id of the value to extract
         @type str
         @return value of the attribute
-        @rtype any
+        @rtype Any
         """
         if attribute == "min":
             if self.__isNumeric(var):
@@ -415,7 +415,7 @@
         Public method to get the attributes of a variable as a list.
 
         @param var variable to be converted
-        @type any
+        @type Any
         @yield tuple containing the batch start index and a list
             containing the variable attributes
         @ytype tuple of (int, list)
@@ -492,7 +492,7 @@
         @param attribute name of the attribute to extract
         @type str
         @return value of the attribute
-        @rtype any
+        @rtype Any
         """
         if " (ID:" not in attribute:
             try:
@@ -512,14 +512,14 @@
         Public method to get the attributes of a variable as a list.
 
         @param var variable to be converted
-        @type any
+        @type Any
         @yield tuple containing the batch start index and a list
             containing the variable attributes
         @ytype tuple of (int, list)
         """
         d = []
         start = count = 0
-        allKeys = list(var.keys())
+        allKeys = list(var)
         try:
             # Fast path: all items from same type
             allKeys.sort()
@@ -583,7 +583,7 @@
         @param attribute id of the value to extract
         @type str
         @return value of the attribute
-        @rtype any
+        @rtype Any
         """
         try:
             return var[int(attribute)]
@@ -597,7 +597,7 @@
         Public method to get the attributes of a variable as a list.
 
         @param var variable to be converted
-        @type any
+        @type Any
         @yield tuple containing the batch start index and a list
             containing the variable attributes
         @ytype tuple of (int, list)
@@ -649,7 +649,7 @@
         @param attribute name of the attribute to extract
         @type str
         @return value of the attribute
-        @rtype any
+        @rtype Any
         """
         if attribute == "internalPointer":
             return var.internalPointer()
@@ -661,7 +661,7 @@
         Public method to get the attributes of a variable as a list.
 
         @param var variable to be converted
-        @type any
+        @type Any
         @yield tuple containing the batch start index and a list
             containing the variable attributes
         @ytype tuple of (int, list)
@@ -845,7 +845,7 @@
     Public method to get the resolver based on the type info of an object.
 
     @param obj object to get resolver for
-    @type any
+    @type Any
     @return resolver
     @rtype BaseResolver
     """

eric ide

mercurial