Open rodrigogiraoserrao opened 1 year ago
@rodrigogiraoserrao Is this stale? Feel free to close if its no longer relevant.
@willmcgugan The code is still there and it is still safe to remove it from our test suite. I suspect this is remnant of a way in which actions were built/handled but now it is no longer needed.
There is potentially dead code in:
https://github.com/Textualize/textual/blob/dc4421e76a782f02f6de8e3fb20512b18c8965d1/src/textual/app.py#L2076-L2077
The
action
is extracted fromstyle.meta
which has a very dynamic type.Is it actually possible to have callables in
style.meta
? At the time of writing, deleting those two lines of code doesn't break the tests.If it is possible for
style.meta
to contain callables, is that a feature we really want?Can we type
style.meta
more restrictively and type_event_broker.py::HandlerArguments.action
more restrictively? E.g., by using the typicalstr | Action
which uses the typeAction
fromactions.py
?