@classmethod
    def disable(cls):
        # Skip if not on Windows or not enabled.
        if not IS_WINDOWS or not cls.is_enabled():
            return False

        # Restore default colors.
        if hasattr(sys.stderr, 'color'):
            getattr(sys, 'stderr').color = None
        if hasattr(sys.stdout, 'color'):
            getattr(sys, 'stdout').color = None

        # Restore original streams.
        if hasattr(sys.stderr, '_original_stream'):
            sys.stderr = getattr(sys.stderr, '_original_stream')
        if hasattr(sys.stdout, '_original_stream'):
            sys.stdout = getattr(sys.stdout, '_original_stream')

        return True
Restore sys.stderr and sys.stdout to their original objects. Resets colors to their original values.
dataset/ETHPy150Open Robpol86/colorclass/colorclass/windows.py/Windows.disable