Resolve inconsistencies with use of BlenderTypeEnum
and prefix_values_with
-on-StrEnum
#43
Labels
No Label
abstractions
architecture
bug
distribution
docs
duplicate
enhancement
feature
physical
proposal
question
simulation
tooling
tracker
unconfirmed
ux
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: so-rose/oscillode#43
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
We use both to define enums with common prefixes / custom functionality, but tend to strictly prefer
StrEnum
.The only show-stopper when it comes to migrating everything to
prefix_values_with
is that it does not propagate methods defined on the original class to the new class. It's a surprisingly non-trivial thing to fix; see the enum docs (https://docs.python.org/3/library/enum.html).We either need to fix this limitation of
prefix_values_with
and migrate all uses ofBlenderTypeEnum
(including removing now-spurious uses of.values
on all sockets / nodes), or do something else. In any case,blender_type_enum.py
is a really unfortunate bit of code to keep around.