Skip to content

Commit 8eb647f

Browse files
committed
lint
1 parent 5d98aa8 commit 8eb647f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

array_api_compat/torch/_aliases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from collections.abc import Sequence
44
from functools import reduce as _reduce, wraps as _wraps
55
from builtins import all as _builtin_all, any as _builtin_any
6-
from typing import Any, List, Optional, Sequence, Tuple, Union, Literal
6+
from typing import Any, Literal
77

88
import torch
99

@@ -824,7 +824,7 @@ def sign(x: Array, /) -> Array:
824824
return out
825825

826826

827-
def meshgrid(*arrays: Array, indexing: Literal['xy', 'ij'] = 'xy') -> List[Array]:
827+
def meshgrid(*arrays: Array, indexing: Literal['xy', 'ij'] = 'xy') -> list[Array]:
828828
# enforce the default of 'xy'
829829
# TODO: is the return type a list or a tuple
830830
return list(torch.meshgrid(*arrays, indexing='xy'))

0 commit comments

Comments
 (0)