Skip to content

Commit d6a1fb0

Browse files
Apply ruff rule RUF013
RUF013 PEP 484 prohibits implicit `Optional`
1 parent 23fb754 commit d6a1fb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

asv_bench/benchmarks/dataset_io.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ class PerformanceBackend(xr.backends.BackendEntrypoint):
722722
def open_dataset(
723723
self,
724724
filename_or_obj: str | os.PathLike | None,
725-
drop_variables: tuple[str, ...] = None,
725+
drop_variables: tuple[str, ...] | None = None,
726726
*,
727727
mask_and_scale=True,
728728
decode_times=True,

ci/min_deps_check.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def process_pkg(
186186
)
187187

188188

189-
def fmt_version(major: int, minor: int, patch: int = None) -> str:
189+
def fmt_version(major: int, minor: int, patch: int | None = None) -> str:
190190
if patch is None:
191191
return f"{major}.{minor}"
192192
else:

0 commit comments

Comments
 (0)