Skip to content

Commit

Permalink
pass tuple as args in nb_has_all_output
Browse files Browse the repository at this point in the history
  • Loading branch information
juhuebner committed May 12, 2021
1 parent 809c9cd commit 416c84d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions myst_nb/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import tempfile
from datetime import datetime
from pathlib import Path
from typing import List, Optional, Set
from typing import List, Optional, Set, Tuple

import nbformat as nbf
from jupyter_cache import get_cache
Expand Down Expand Up @@ -327,7 +327,9 @@ def _converter(path):
return result


def nb_has_all_output(source_path: str, nb_extensions: List[str] = (".ipynb",)) -> bool:
def nb_has_all_output(
source_path: str, nb_extensions: Tuple[str] = (".ipynb",)
) -> bool:
"""Determine if the path contains a notebook with at least one output."""
has_outputs = False
ext = os.path.splitext(source_path)[1]
Expand Down

0 comments on commit 416c84d

Please sign in to comment.