Skip to content

Commit 590bc1b

Browse files
STY: Apply ruff rule RUF013
RUF013 PEP 484 prohibits implicit `Optional`
1 parent 2e757c4 commit 590bc1b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

niworkflows/interfaces/nibabel.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#
2323
"""Nibabel-based interfaces."""
2424

25+
from __future__ import annotations
26+
2527
from pathlib import Path
2628
from warnings import warn
2729

@@ -520,9 +522,9 @@ def _run_interface(self, runtime):
520522
def reorient_file(
521523
in_file: str,
522524
*,
523-
target_file: str = None,
524-
target_ornt: str = None,
525-
newpath: str = None,
525+
target_file: str | None = None,
526+
target_ornt: str | None = None,
527+
newpath: str | None = None,
526528
) -> str:
527529
"""
528530
Reorient an image.

0 commit comments

Comments
 (0)