YAML.jl
YAML.jl copied to clipboard
composer.input return values
From #116 @hexane360 said:
To be honest, the hacky part was already there, in that
_parse_flow_sequence_entry
could randomly returnnothing
. This change just handles that case appropriately. I'm not familiar enough with the codebase to know if randomly returningnothing
is expected behavior forcomposer.input
. I'd suggest adding an output type hint, but the way the code is structured makes it impossible to propagate that to the users ofcomposer.input
.One alternative would be for
_parse_flow_sequence_entry
to ingest the]
token and produce aSequenceEndEvent
. That might be more idiomatic.