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
The problem is here. Since an Enum doesn't have an instance of self, when __reduce_ex__(4) is called, you will get an error telling you that you are missing one required positional argument. In order to call __reduce_ex__(4) on an Enum, you'd have to use one of the concrete enum values. For example:
I'm still digging into the code to fully understand what's going on here, so I'm don't have enough context to give a good recommendation. It is perhaps the case that you'd have to iterate over each of the enum values to call __reduce_ex__(4) on them one-by-one. Or perhaps it is the case that Enums are not able to be used by this method.
The text was updated successfully, but these errors were encountered:
Took a quick look at this issue, this one may be a bit challenging especially due to the enum changes over the last few Python minor versions. Enum class does a couple of gnarly things under the hood to get it working.
In most scenarios, I can't imagine why you'd need a duplicate Enum class? Isn't the whole point to represent static data?
The problem is here. Since an
Enum
doesn't have an instance ofself
, when__reduce_ex__(4)
is called, you will get an error telling you that you are missing one required positional argument. In order to call__reduce_ex__(4)
on anEnum
, you'd have to use one of the concrete enum values. For example:I'm still digging into the code to fully understand what's going on here, so I'm don't have enough context to give a good recommendation. It is perhaps the case that you'd have to iterate over each of the enum values to call
__reduce_ex__(4)
on them one-by-one. Or perhaps it is the case thatEnum
s are not able to be used by this method.The text was updated successfully, but these errors were encountered: