Skip to content

Commit 62f60b2

Browse files
Correct name of function to check
1 parent 21d7352 commit 62f60b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/blueapi/utils/modules.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ def get_named_subset(names: list[str]):
3838

3939

4040
def is_function_sourced_from_module(
41-
obj: Callable[..., Any], module: ModuleType
41+
func: Callable[..., Any], module: ModuleType
4242
) -> bool:
4343
"""
44-
Check if an object is originally from a particular module, useful to detect
44+
Check if a function is originally from a particular module, useful to detect
4545
whether it actually comes from a nested import.
4646
4747
Args:
48-
obj: Object to check
48+
func: Object to check
4949
module: Module to check against object
5050
"""
51-
return importlib.import_module(obj.__module__) is module
51+
return importlib.import_module(func.__module__) is module

0 commit comments

Comments
 (0)