diff --git a/smartsim/entity/application.py b/smartsim/entity/application.py index 12764845d..364e87e04 100644 --- a/smartsim/entity/application.py +++ b/smartsim/entity/application.py @@ -26,6 +26,7 @@ from __future__ import annotations +import collections import copy import textwrap import typing as t @@ -262,7 +263,7 @@ def _build_exe_args(exe_args: t.Union[str, t.Sequence[str], None]) -> t.List[str if not ( isinstance(exe_args, str) or ( - isinstance(exe_args, list) + isinstance(exe_args, collections.abc.Sequence) and all(isinstance(arg, str) for arg in exe_args) ) ):