make sure to remove old overidden_attrs

This commit is contained in:
Peter Josef Scheibel
2022-10-20 13:17:12 -06:00
committed by Gregory Becker
parent 56671984b5
commit 2ad94bc76a

View File

@@ -1378,6 +1378,8 @@ def get_pkg_class(self, pkg_name):
setattr(cls, key, val)
if new_overidden_attrs:
setattr(cls, "overidden_attrs", dict(new_overidden_attrs))
else:
delattr(cls, "overidden_attrs")
return cls