Skip to content

Commit 8784be7

Browse files
committed
HasRankLE should always accepts rank-0 things (like scalars)
1 parent 197cf6d commit 8784be7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_numtype/_rank.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ _RankT = TypeVar("_RankT", bound=Shape, default=Any)
3535

3636
HasRankLE = TypeAliasType(
3737
"HasRankLE",
38-
_HasShape[_HasOwnShape[_UpperT] | _CanBroadcast[Any, _UpperT, _RankT]],
38+
_HasShape[Shape0 | _HasOwnShape[_UpperT] | _CanBroadcast[Any, _UpperT, _RankT]],
3939
type_params=(_UpperT, _RankT),
4040
)
4141
HasRankGE = TypeAliasType(

0 commit comments

Comments
 (0)