pass args to wrapped function

This commit is contained in:
Sean Breckenridge 2022-03-07 03:48:28 -08:00 committed by karlicoss
parent 07b0c0cbef
commit 3fd6c81511

View file

@ -42,7 +42,7 @@ def import_source(
@wraps(factory_func) @wraps(factory_func)
def wrapper(*args, **kwargs) -> Iterator[T]: def wrapper(*args, **kwargs) -> Iterator[T]:
try: try:
res = factory_func(**kwargs) res = factory_func(*args, **kwargs)
yield from res yield from res
except ImportError as err: except ImportError as err:
from . import core_config as CC from . import core_config as CC