@@ -40,7 +40,7 @@ def register_function(self, f, parent_class=None):
40
40
f (FunctionType): Function to track
41
41
parent_class (Type): Parent class of the function if part of a
42
42
class; defaults to None
43
-
43
+
44
44
Raises:
45
45
MonitoringError: if f seems to be a classmethod but it does not have
46
46
an __func__ attribute holding the wrapped method.
@@ -94,7 +94,7 @@ def registered_functions(self):
94
94
def called_functions (self ):
95
95
"""
96
96
Returns:
97
- Tuple[Tuple[str, Tuple[FunctionType, ...]], ...]: all called registered
97
+ Tuple[Tuple[str, Tuple[FunctionType, ...]], ...]: all called registered
98
98
functions, grouped by module
99
99
"""
100
100
return tuple (
@@ -139,7 +139,7 @@ def record_call(self, f, source_file, source_function):
139
139
originates
140
140
source_function (str): Name of the function from where the call
141
141
originates
142
-
142
+
143
143
Returns:
144
144
bool: True if the call was recorded, False otherwise.
145
145
"""
@@ -344,13 +344,13 @@ def get_methods_defined_in_class(cls):
344
344
345
345
def find_modules (path ):
346
346
"""
347
- Discover all Python module files in a path. Uses os.walk to recursively traverse
348
- all the nested directories but does not follow symlinks. Returns a generator
347
+ Discover all Python module files in a path. Uses os.walk to recursively traverse
348
+ all the nested directories but does not follow symlinks. Returns a generator
349
349
of 2-tuples, (absolute_file_path, absolute_module_name).
350
350
351
351
Args:
352
352
path (str):
353
-
353
+
354
354
Returns:
355
355
Generator[Tuple[str, str], None, None]
356
356
"""
0 commit comments