Skip to content

Commit e2f2012

Browse files
authored
Fix type annotation of renderlist (#387)
Fix: ``` schema-salad-doc --brandstyle '<link rel="stylesheet" href="https://jamestaylor.org/galaxy-bootstrap/galaxy_bootstrap.css">' --brandinverse --brand '<img src="icon.png" />' --only https://galaxyproject.org/gxformat2/v19_09#WorkflowDoc --only https://galaxyproject.org/gxformat2/v19_09#GalaxyWorkflow workflow.yml Traceback (most recent call last): File "/home/soranzon/software/nsoranzo_gxformat2/.venv/bin/schema-salad-doc", line 8, in <module> sys.exit(main()) File "schema_salad/makedoc.py", line 695, in main File "schema_salad/makedoc.py", line 730, in makedoc TypeError: str object expected; got list ```
1 parent c157554 commit e2f2012

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schema_salad/makedoc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def __init__(
187187
self,
188188
toc: ToC,
189189
j: List[Dict[str, str]],
190-
renderlist: str,
190+
renderlist: List[str],
191191
redirects: Dict[str, str],
192192
primitiveType: str,
193193
) -> None:
@@ -496,7 +496,7 @@ def extendsfrom(item: Dict[str, Any], ex: List[Dict[str, Any]]) -> None:
496496
def avrold_doc(
497497
j: List[Dict[str, Any]],
498498
outdoc: Union[IO[Any], StreamWriter],
499-
renderlist: str,
499+
renderlist: List[str],
500500
redirects: Dict[str, str],
501501
brand: str,
502502
brandlink: str,

0 commit comments

Comments
 (0)