I think SlotExtensionError should be rename since it raises not only when the definition…
Jump to turn (11)
- 1I think SlotExtensionError should be rename since it raises not only when the de
- 2What about SlotUsageGenerationError?
- 3sure
- 4are you sure the word "reconcile" is the right word to use? Basically, a slot us
- 5I think we need to be very specific about the overriding is only done to non-con
- 6sure
- 7let's make sure all the ruff checks and type checks pass as well.
- 8I think instead of "slotusage can only extend with new properties and override n
- 9I made some small changes, please check.
- 10If you are OK, let's commit and submit a PR.
- 11I think if you run the ruff checks, it will be reverted.
- User
I think
SlotExtensionErrorshould be rename since it raises not only when the definition can not be extended specically but it is because a slot definition can be modified byslot_usagedefinition in general. If the renaming should be done, I think documentation should be adjusted as well. Assistant
Agreed — the current name only captures the "missing properties" (extension) case and misses the "constraint mismatch" case, which is really about the base not being reconcilable with the target via
slot_usage.My suggestion: rename to
SlotUsageError. It names the mechanism (slot_usage) rather than one of the two failure modes, and reads naturally with the docstring ("cannot produce a slot_usage entry that reconciles base with target"). Alternatives like or are more descriptive but wordier.