You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
__init__ does if type(self.C) is not type(CONSTANTS): self.C = Constants() (parser.py:115) to support constants=None, but the exact-type check means a user passing an instance of a Constantssubclass gets it silently replaced with fresh defaults — their configuration is discarded without any error.
Fix: change to if constants is None: self.C = Constants(), and raise TypeError for anything that is neither None nor a Constants instance.
Activity
Guard remaining config assignment paths against silent corruption (#246)