Check for 'hidden' attribute when determining classes to validate

This commit is contained in:
David McDonald
2025-03-28 15:22:37 -05:00
parent 196556eab3
commit 46e3b8ffdb
+1
View File
@@ -111,6 +111,7 @@ def is_versionable(var):
issubclass(var, interfaces.configuration.VersionableInterface)
and var is not interfaces.configuration.VersionableInterface
and not inspect.isabstract(var)
and not (hasattr(var, "hidden") and getattr(var, "hidden") is True)
)
except TypeError:
return False