We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36db406 commit 3329479Copy full SHA for 3329479
src/attr/_make.py
@@ -865,7 +865,11 @@ def _create_slots_class(self):
865
del self._cls.__weakref__
866
867
# Manually bump internal version tag.
868
- self._cls.__name__ = self._cls.__name__
+ if hasattr(self._cls, "__abstractmethods__"):
869
+ self._cls.__abstractmethods__ = self._cls.__abstractmethods__
870
+ else:
871
+ self._cls.__abstractmethods__ = frozenset({"__init__"})
872
+ del self._cls.__abstractmethods__
873
874
# If our class doesn't have its own implementation of __setattr__
875
# (either from the user or by us), check the bases, if one of them has
0 commit comments