-
Notifications
You must be signed in to change notification settings - Fork 815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create base TreeMessage
for tree messages?
#2487
Comments
IIRC I made that change once but it got reversed. Might be worth looking back through history. I think the objection was to do with impact on documentation, so perhaps we're in a better place now. (To be clear, I'm massively pro common parent class) |
You are right, and I was the one who removed the base class 😆 f34685b
I see the point. It isn't super obvious what attributes the Thoughts, @willmcgugan? |
(If we decide against a |
I think with @davep 's change to the The docs issue is annoying. |
Not being super clear what attributes the messages have? |
Exactly. The indirection means that some people will miss the attributes in the base class. |
It probably does make some sense to have a common base class. But it doesn't seem all that useful: I can't see a reason why you would want to respond to multiple tree events in a single handler. Closing this, because it just doesn't seem worth changing, unless we have an identiable need for it. |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
OptionList
has aOptionMessage
that is inherited by the twoOptionList
messages.Is it worth doing the same for the tree messages? There are 4 messages whose code is exactly the same, the only thing that changes is the name of the class.
The text was updated successfully, but these errors were encountered: