Skip to content

Commit ef65f76

Browse files
committed
fix schema tests
1 parent 0fe6533 commit ef65f76

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nf_core/list.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import os
77
import re
88
from datetime import datetime
9+
from pathlib import Path
10+
from typing import Union
911

1012
import git
1113
import requests
@@ -39,12 +41,12 @@ def list_workflows(filter_by=None, sort_by="release", as_json=False, show_archiv
3941
return wfs.print_summary()
4042

4143

42-
def get_local_wf(workflow, revision=None) -> str:
44+
def get_local_wf(workflow: Union[str, Path], revision=None) -> Union[str, None]:
4345
"""
4446
Check if this workflow has a local copy and use nextflow to pull it if not
4547
"""
4648
# Assume nf-core if no org given
47-
if workflow.count("/") == 0:
49+
if str(workflow).count("/") == 0:
4850
workflow = f"nf-core/{workflow}"
4951

5052
wfs = Workflows()

0 commit comments

Comments
 (0)