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
When looking at EnumProperty's documentation that get_bool and get_int both always returned None.
My expectation of these way that I could set a bool in a property like so:
#[strum(props(HideInHelp = "true"))]Variant,
and then I thought "true" would get parsed into a bool, and I could just check an Option<bool> with get_bool at runtime.
What I don't understand is why get_bool exists and always returns None. Is the feature not ready/implemented yet, and was accidentally added to the master branch? It should also probably be documented at least with a doc-string to prevent the confusion I ran into.
Thanks for the cool crate!
The text was updated successfully, but these errors were encountered:
When looking at
EnumProperty
's documentation thatget_bool
andget_int
both always returnedNone
.My expectation of these way that I could set a bool in a property like so:
and then I thought
"true"
would get parsed into a bool, and I could just check anOption<bool>
withget_bool
at runtime.What I don't understand is why
get_bool
exists and always returnsNone
. Is the feature not ready/implemented yet, and was accidentally added to the master branch? It should also probably be documented at least with a doc-string to prevent the confusion I ran into.Thanks for the cool crate!
The text was updated successfully, but these errors were encountered: