Skip to content

Commit 6f4d194

Browse files
authored
fix typing
1 parent 11ed195 commit 6f4d194

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/core/options.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def _get_keep_attrs(default: bool) -> bool:
163163
return _get_boolean_with_default("keep_attrs", default)
164164

165165

166-
def _get_datetime_resolution() -> str:
166+
def _get_datetime_resolution() -> Literal["s", "ms", "us", "ns"]:
167167
return OPTIONS["time_resolution"]
168168

169169

0 commit comments

Comments
 (0)