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 cf69e60 commit d5b2a74Copy full SHA for d5b2a74
src/attr/_make.py
@@ -865,9 +865,9 @@ def _create_slots_class(self):
865
del self._cls.__weakref__
866
867
# Manually bump internal version tag.
868
- if hasattr(self._cls, "__abstractmethods__"):
+ try:
869
self._cls.__abstractmethods__ = self._cls.__abstractmethods__
870
- else:
+ except AttributeError:
871
self._cls.__abstractmethods__ = frozenset({"__init__"})
872
del self._cls.__abstractmethods__
873
0 commit comments