Skip to content

Commit 507e2c3

Browse files
committed
#121 Fix type hints of typing module
1 parent 6be5548 commit 507e2c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xarray_dataclasses/typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def get_dims(hint: Any) -> Dims:
259259
if is_str_literal(t_dims):
260260
return (get_inner(t_dims, 0),)
261261

262-
args = get_args(t_dims)
262+
args: Any = get_args(t_dims)
263263

264264
if args == () or args == ((),):
265265
return ()
@@ -300,7 +300,7 @@ def get_inner(hint: Any, *indexes: int) -> Any:
300300

301301
def is_str_literal(hint: Any) -> bool:
302302
"""Check if a type hint is Literal[str]."""
303-
args = get_args(hint)
303+
args: Any = get_args(hint)
304304
origin = get_origin(hint)
305305

306306
if origin is not Literal:

0 commit comments

Comments
 (0)