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
If @deprecated is applied to a class which defines __new__ but not __init__, it applies this check from object.__new__(), causing a TypeError from code that otherwise works fine:
It seems like that check should be moved into the else: branch there. I originally found this when trying to deprecate a NamedTuple class, which is potentially a more likely way to run into this issue.