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: guide/src/class.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1183,7 +1183,7 @@ enum BadSubclass {
1183
1183
1184
1184
An enum is complex if it has any non-unit (struct or tuple) variants.
1185
1185
1186
-
Currently PyO3 supports only struct and tuple variants in a complex enum. Support for unit variants is planned.
1186
+
PyO3 supports only struct and tuple variants in a complex enum. Unit variants aren't supported at present (the recommendation is to use an empty tuple enum instead).
1187
1187
1188
1188
PyO3 adds a class attribute for each variant, which may be used to construct values and in match patterns. PyO3 also provides getter methods for all fields of each variant.
0 commit comments