We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21d7352 commit 62f60b2Copy full SHA for 62f60b2
src/blueapi/utils/modules.py
@@ -38,14 +38,14 @@ def get_named_subset(names: list[str]):
38
39
40
def is_function_sourced_from_module(
41
- obj: Callable[..., Any], module: ModuleType
+ func: Callable[..., Any], module: ModuleType
42
) -> bool:
43
"""
44
- Check if an object is originally from a particular module, useful to detect
+ Check if a function is originally from a particular module, useful to detect
45
whether it actually comes from a nested import.
46
47
Args:
48
- obj: Object to check
+ func: Object to check
49
module: Module to check against object
50
51
- return importlib.import_module(obj.__module__) is module
+ return importlib.import_module(func.__module__) is module
0 commit comments