Fixed #23070 -- not to break the debug page by callable setting with __slots__