[Fix] Fix undefined variable error in Runner (#1219)

This commit is contained in:
Mashiro 2023-06-28 18:59:22 +08:00 committed by GitHub
parent d03a1da9a9
commit 6c5366649e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1396,7 +1396,7 @@ class Runner:
else:
raise TypeError(
'type of worker_init_fn should be string or callable '
f'object, but got {type(worker_init_fn)}')
f'object, but got {type(worker_init_fn_type)}')
assert callable(worker_init_fn)
init_fn = partial(worker_init_fn,
**worker_init_fn_cfg) # type: ignore