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
@@ -144,8 +144,8 @@ so that they can benefit from a freelist. `XXX` is a number of items for the fre
144
144
*`gc` - Classes with the `gc` parameter participate in Python garbage collection.
145
145
If a custom class contains references to other Python objects that can be collected, the [`PyGCProtocol`]({{#PYO3_DOCS_URL}}/pyo3/class/gc/trait.PyGCProtocol.html) trait has to be implemented.
146
146
*`weakref` - Adds support for Python weak references.
147
-
*`extends=BaseType` - Use a custom base class. The base `BaseType` must implement `PyTypeInfo`. Enums can't have custom base class.
148
-
*`subclass` - Allows Python classes to inherit from this class. Enums cannot be inherited.
147
+
*`extends=BaseType` - Use a custom base class. The base `BaseType` must implement `PyTypeInfo`. `enum` pyclasses can't use a custom base class.
148
+
*`subclass` - Allows Python classes to inherit from this class. `enum` pyclasses can't be inherited from.
149
149
*`dict` - Adds `__dict__` support, so that the instances of this type have a dictionary containing arbitrary instance variables.
150
150
*`unsendable` - Making it safe to expose `!Send` structs to Python, where all object can be accessed
151
151
by multiple threads. A class marked with `unsendable` panics when accessed by another thread.
0 commit comments