Skip to content

Commit 84e28e7

Browse files
committed
fill_value
1 parent ac2cb73 commit 84e28e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

array_api_compat/common/_aliases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def eye(
6767

6868
def full(
6969
shape: Union[int, Tuple[int, ...]],
70-
fill_value: Union[int, float],
70+
fill_value: bool | complex,
7171
xp: Namespace,
7272
*,
7373
dtype: Optional[DType] = None,
@@ -80,7 +80,7 @@ def full(
8080
def full_like(
8181
x: Array,
8282
/,
83-
fill_value: Union[int, float],
83+
fill_value: bool | complex,
8484
*,
8585
xp: Namespace,
8686
dtype: Optional[DType] = None,

array_api_compat/torch/_aliases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ def linspace(start: Union[int, float],
602602
# torch.full does not accept an int size
603603
# https://github.com/pytorch/pytorch/issues/70906
604604
def full(shape: Union[int, Tuple[int, ...]],
605-
fill_value: Union[bool, int, float, complex],
605+
fill_value: bool | complex,
606606
*,
607607
dtype: Optional[DType] = None,
608608
device: Optional[Device] = None,

0 commit comments

Comments
 (0)