Skip to content

Commit d412697

Browse files
committed
Add support for __slots__ attribute.
1 parent 5676e55 commit d412697

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGES.txt

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changes
22
=======
33

4+
In next release ...
5+
6+
Bugfixes:
7+
8+
- Add support for ``__slots__``.
9+
410
0.3 (2012-02-02)
511
----------------
612

src/dobbin/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def add_class_properties(cls, local_cls, d):
3131
attrs.update(base.__dict__)
3232

3333
for key, value in attrs.items():
34-
if key == '__qualname__':
34+
if key == '__qualname__' or key == '__slots__':
3535
continue
3636

3737
if (key, value) in flattened:

0 commit comments

Comments
 (0)