Skip to content

Commit

Permalink
use backward compatible type
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Dec 15, 2023
1 parent fd2af16 commit 5fa12f1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os
import sys

from giga_connectome import __version__, __packagename__, __copyright__
from giga_connectome import __copyright__, __packagename__, __version__

sys.path.insert(0, os.path.abspath(".."))
# -- Project information -----------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions giga_connectome/denoise.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import json
from pathlib import Path
from typing import Any, Callable, TypedDict
from typing import Any, Callable, TypedDict, Union

import numpy as np
import pandas as pd
Expand Down Expand Up @@ -38,7 +38,7 @@
{
"name": str,
"function": Callable[..., Any],
"parameters": dict[str, str | list[str]],
"parameters": dict[str, Union[str, list[str]]],
},
)

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ module = [
"nilearn.masking.*",
"nilearn.image.*",
"nilearn.interfaces.*",
"pytest",
"rich.*",
"scipy.ndimage.*",
"templateflow.*",
Expand Down
2 changes: 1 addition & 1 deletion tools/download_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def download_mist() -> None:

# download and convert
import importlib.util
import sys
import shutil
import sys

if spec := importlib.util.spec_from_file_location(
"mist2templateflow",
Expand Down

0 comments on commit 5fa12f1

Please sign in to comment.