Skip to content

Commit 3bf49bf

Browse files
Apply ruff rule RUF013
RUF013 PEP 484 prohibits implicit `Optional`
1 parent 97c94d4 commit 3bf49bf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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
) -> pe.Workflow:
6161
"""

fmriprep/workflows/bold/fit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def get_sbrefs(
9595
def init_bold_fit_wf(
9696
*,
9797
bold_series: list[str],
98-
precomputed: dict = None,
98+
precomputed: dict | None = None,
9999
fieldmap_id: str | None = None,
100100
omp_nthreads: int = 1,
101101
name: str = 'bold_fit_wf',

fmriprep/workflows/tests/test_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ def _make_params(
117117
use_syn_sdc: str | bool = False,
118118
force_syn: bool = False,
119119
freesurfer: bool = True,
120-
ignore: list[str] = None,
121-
bids_filters: dict = None,
120+
ignore: list[str] | None = None,
121+
bids_filters: dict | None = None,
122122
):
123123
if ignore is None:
124124
ignore = []

0 commit comments

Comments
 (0)