@@ -104,21 +104,7 @@ def call_depth(self, value: int) -> None:
104104 self ._call_depth = value
105105
106106 def _build_target_index (self ):
107- """Build fast lookup indexes for monitoring targets.
108-
109- Creates three-level indexes:
110- - module_index: Set of monitored module names
111- - class_index: Nested mapping of modules to their classes
112- - function_index: Nested mapping of modules to their functions
113- - global_index: Nested mapping of modules to their global variables
114-
115- Final structure example:
116- index_map = {
117- 'class': {'module1': {'ClassA', 'ClassB'}, ...},
118- 'function': {'module1': {'func1', 'func2'}, ...},
119- 'global': {'module1': {'var1', 'var2'}, ...}
120- }
121- """
107+ """Build fast lookup indexes for monitoring targets."""
122108 self .module_index = set (self .targets .keys ())
123109 self .class_index = {}
124110 self .method_index = {}
@@ -169,25 +155,7 @@ def _build_target_index(self):
169155 }
170156
171157 def _build_exclude_target_index (self ):
172- """Build fast lookup indexes for exclusion targets.
173-
174- Creates indexes for exclusion targets similar to _build_target_index:
175- - exclude_module_index: Set of excluded module names
176- - exclude_class_index: Nested mapping of modules to their excluded classes
177- - exclude_method_index: Nested mapping of modules to their excluded methods
178- - exclude_attribute_index: Nested mapping of modules to their excluded attributes
179- - exclude_function_index: Nested mapping of modules to their excluded functions
180- - exclude_global_index: Nested mapping of modules to their excluded global variables
181-
182- Final structure example:
183- exclude_index_map = {
184- 'class': {'module1': {'ClassA', 'ClassB'}, ...},
185- 'method': {'module1': {'ClassA': {'method1', 'method2'}, ...}, ...},
186- 'attribute': {'module1': {'ClassA': {'attr1', 'attr2'}, ...}, ...},
187- 'function': {'module1': {'func1', 'func2'}, ...},
188- 'global': {'module1': {'var1', 'var2'}, ...}
189- }
190- """
158+ """Build fast lookup indexes for exclusion targets."""
191159 self .exclude_module_index = set (self .exclude_targets .keys ())
192160 self .exclude_class_index = {}
193161 self .exclude_method_index = {}
0 commit comments