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 7bb68fb commit ecf7078Copy full SHA for ecf7078
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