Skip to content

Commit aea49bd

Browse files
Manual typing fix
By definition `T_Chunks` and `T_Engine` could actually be `None`.
1 parent 365a1ee commit aea49bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xarray/backends/api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -710,8 +710,8 @@ def open_dataset(
710710
def open_dataarray(
711711
filename_or_obj: str | os.PathLike[Any] | ReadBuffer | AbstractDataStore,
712712
*,
713-
engine: T_Engine | None = None,
714-
chunks: T_Chunks | None = None,
713+
engine: T_Engine = None,
714+
chunks: T_Chunks = None,
715715
cache: bool | None = None,
716716
decode_cf: bool | None = None,
717717
mask_and_scale: bool | None = None,
@@ -1394,7 +1394,7 @@ def open_mfdataset(
13941394
| os.PathLike
13951395
| ReadBuffer
13961396
| NestedSequence[str | os.PathLike | ReadBuffer],
1397-
chunks: T_Chunks | None = None,
1397+
chunks: T_Chunks = None,
13981398
concat_dim: (
13991399
str
14001400
| DataArray
@@ -1406,7 +1406,7 @@ def open_mfdataset(
14061406
) = None,
14071407
compat: CompatOptions = "no_conflicts",
14081408
preprocess: Callable[[Dataset], Dataset] | None = None,
1409-
engine: T_Engine | None = None,
1409+
engine: T_Engine = None,
14101410
data_vars: Literal["all", "minimal", "different"] | list[str] = "all",
14111411
coords="different",
14121412
combine: Literal["by_coords", "nested"] = "by_coords",

0 commit comments

Comments
 (0)