From b1431a772efdd3c2769e5000d1608997adf443e2 Mon Sep 17 00:00:00 2001 From: Julia Putko Date: Wed, 4 Sep 2024 18:12:07 -0500 Subject: [PATCH] type fix --- smartsim/entity/application.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) ) ):