Resolve inconsistencies with use of BlenderTypeEnum
and prefix_values_with
-on-StrEnum
#43
Labels
No labels
abstractions
architecture
bug
distribution
docs
duplicate
enhancement
feature
physical
proposal
question
simulation
tooling
tracker
unconfirmed
ux
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: so-rose/oscillode#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. 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.