f | class empty(type): | f | class empty(type): |
| | | |
n | def __new__(metacls, name, parents, namespace, **kwargs): | n | def __new__(metacls, name, parents, ns, **kwargs): |
| | | |
n | def __bool__(self): | n | def new_bool(self): |
| for value in self.__dict__.values(): | | for i in self.__dict__.values(): |
| if not value: | | if not i: |
| return False | | return False |
| return True | | return True |
t | namespace['__bool__'] = __bool__ | t | ns['__bool__'] = new_bool |
| return super().__new__(metacls, name, parents, namespace) | | return super().__new__(metacls, name, parents, ns) |