You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/glossary.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ slotted classes
43
43
- Slotted classes can inherit from other classes just like non-slotted classes, but some of the benefits of slotted classes are lost if you do that.
44
44
If you must inherit from other classes, try to inherit only from other slotted classes.
45
45
46
-
- However, [it's not possible](https://docs.python.org/3/reference/datamodel.html#notes-on-using-slots) to inherit from more than one class that has attributes in `__slots__` (you will get an `TypeError: multiple bases have instance lay-out conflict`).
46
+
- However, [it's not possible](https://docs.python.org/3/reference/datamodel.html#slots) to inherit from more than one class that has attributes in `__slots__` (you will get an `TypeError: multiple bases have instance lay-out conflict`).
47
47
48
48
- It's not possible to monkeypatch methods on slotted classes.
49
49
This can feel limiting in test code, however the need to monkeypatch your own classes is usually a design smell.
0 commit comments