Open fkromer opened 5 years ago
Hi. You should be able to Seq(Seq(Str())), no?
Yep, it works:
In [1]: from strictyaml import Seq, Str, load
In [2]: load("""
...: -
...: - 1
...: - 2
...: - 3
...: -
...: - f
...: - 5
...: - 6
...: """, Seq(Seq(Str())))
Out[2]: YAML([['1', '2', '3'], ['f', '5', '6']])
Leaving this open for now as I should probably add an example of this to the docs.
Yes, works perfectly fine. Sorry. I forgot to let you know.
It works for me. test file:
seq_of_seqs:
-
- "a"
- "b"
-
- 1
- 2
output of strictyaml.load(test).data
sent to pprint
{'seq_of_seqs': [['a', 'b'], ['1', '2']]}
Does StriclYaml support nested sequences like e.g.
seq_of_seqs
I could not find a corresponding section in the sequences docs.