From f2639d9e60695d4cc9ec05b33e01cb6a74b133d2 Mon Sep 17 00:00:00 2001 From: Manuel Candales Date: Fri, 6 Feb 2026 17:37:05 -0500 Subject: [PATCH] Fix MetaArg string representation for Python 3.10 compatibility Use explicit .name attribute to ensure consistent enum string formatting across Python 3.10 and Python 3.11+ In Python 3.11+, str(str_enum) returns the qualified name, but in Python 3.10 it returns just the value. Using .name ensures we always get 'ArgType.IntOpt' format as expected by tests. --- facto/inputgen/argument/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/facto/inputgen/argument/engine.py b/facto/inputgen/argument/engine.py index 9492cef..4bcdff8 100644 --- a/facto/inputgen/argument/engine.py +++ b/facto/inputgen/argument/engine.py @@ -167,7 +167,7 @@ def __str__(self): strval = f"{self.dtype} {self.structure}" else: strval = str(self.value) - return f"{self.argtype} {strval}" + return f"ArgType.{self.argtype.name} {strval}" def length(self): if self.argtype.is_list():