We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6be5548 commit 507e2c3Copy full SHA for 507e2c3
xarray_dataclasses/typing.py
@@ -259,7 +259,7 @@ def get_dims(hint: Any) -> Dims:
259
if is_str_literal(t_dims):
260
return (get_inner(t_dims, 0),)
261
262
- args = get_args(t_dims)
+ args: Any = get_args(t_dims)
263
264
if args == () or args == ((),):
265
return ()
@@ -300,7 +300,7 @@ def get_inner(hint: Any, *indexes: int) -> Any:
300
301
def is_str_literal(hint: Any) -> bool:
302
"""Check if a type hint is Literal[str]."""
303
- args = get_args(hint)
+ args: Any = get_args(hint)
304
origin = get_origin(hint)
305
306
if origin is not Literal:
0 commit comments