Skip to content

Commit 636b29d

Browse files
STY: Apply ruff rule RUF013
RUF013 PEP 484 prohibits implicit `Optional`
1 parent 240644f commit 636b29d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

fmriprep/workflows/bold/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
def init_bold_wf(
5656
*,
5757
bold_series: list[str],
58-
precomputed: dict = None,
58+
precomputed: dict | None = None,
5959
fieldmap_id: str | None = None,
6060
jacobian: bool = False,
6161
) -> pe.Workflow:

fmriprep/workflows/bold/fit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def get_sbrefs(
9494
def init_bold_fit_wf(
9595
*,
9696
bold_series: list[str],
97-
precomputed: dict = None,
97+
precomputed: dict | None = None,
9898
fieldmap_id: str | None = None,
9999
jacobian: bool = False,
100100
omp_nthreads: int = 1,

fmriprep/workflows/tests/test_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ def _make_params(
115115
skull_strip_t1w: str = 'auto',
116116
use_syn_sdc: str | bool = False,
117117
freesurfer: bool = True,
118-
ignore: list[str] = None,
119-
force: list[str] = None,
120-
bids_filters: dict = None,
118+
ignore: list[str] | None = None,
119+
force: list[str] | None = None,
120+
bids_filters: dict | None = None,
121121
):
122122
if ignore is None:
123123
ignore = []

0 commit comments

Comments
 (0)