From 174da915d21c23dc3c3427cf691d0c74f05bbd29 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Wed, 29 Oct 2025 14:05:13 +0100 Subject: [PATCH] allow to remove a property defined in a base class the same mechanism works already for parameters Change-Id: I19da668ded9697b0f51069af9ddd752091abd0fc --- frappy/properties.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frappy/properties.py b/frappy/properties.py index 5e8775c6..b6badf38 100644 --- a/frappy/properties.py +++ b/frappy/properties.py @@ -141,6 +141,10 @@ class HasProperties(HasDescriptors): for pn, po in list(properties.items()): value = getattr(cls, pn, po) if not isinstance(value, Property): # attribute may be a bare value + if value is None: + # this allows to remove a property defined in a base class + cls.propertyDict.pop(pn) + continue po = po.copy() try: # try to apply bare value to Property