Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Aug 10, 2024
1 parent 2944d6d commit 1d01640
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bidsmreye/report.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
"""Compile outputs from all tasks, spaces, runs into a single HTML."""

import datetime
from collections.abc import Iterable
from os import PathLike
from pathlib import Path
from typing import Union

from jinja2 import Environment, FileSystemLoader, select_autoescape

Expand All @@ -12,8 +15,10 @@

TEMPLATES_DIR = Path(__file__).parent / "templates"

SearchpathType = str | PathLike[str] | Iterable[str | PathLike[str]]

def return_jinja_env(searchpath: str | Path | None = None) -> Environment:

def return_jinja_env(searchpath: Union[SearchpathType, None] = None) -> Environment:
if searchpath is None:
searchpath = TEMPLATES_DIR / "report"
return Environment(
Expand Down

0 comments on commit 1d01640

Please sign in to comment.