Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.9"
python: "3.13"
jobs:
pre_build:
- curl https://radia.run | bash -s readthedocs
Expand Down
3 changes: 2 additions & 1 deletion pykern/fconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,8 @@ def _list(self, new, base):
# lists don't have base values
with self._xpath(f"[{i}]"):
x = self._do(e, None)
if isinstance(x, list):
# if list of lists, just append. If expression returns list, then extend
if not isinstance(e, list) and isinstance(x, list):
res.extend(x)
else:
res.append(x)
Expand Down
2 changes: 1 addition & 1 deletion pykern/package_data/projex/dot-readthedocs.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.9"
python: "3.13"
jobs:
pre_build:
- curl https://radia.run | bash -s readthedocs
Expand Down
1 change: 1 addition & 0 deletions tests/fconf_data/1.in/1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ one:
more_items(inside()):
list:
- r0
- [a, b, c]
- red()
mixed: mymap(host, range(3, 5))
all_hosts: map(host, ${top.hosts})
Expand Down
5 changes: 5 additions & 0 deletions tests/fconf_data/1.out/res.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@
],
"list": [
"r0",
[
"a",
"b",
"c"
],
"r1",
"r2"
],
Expand Down