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 5cbbace commit 2198a35Copy full SHA for 2198a35
src/array_api_extra/_lib/_funcs.py
@@ -389,8 +389,8 @@ def one_hot(
389
x_size = x.size
390
if x_size is None: # pragma: no cover
391
# This cannot be tested because there is no way to create an array with abstract
392
- # size today. However, it must be blocked for the sake of type-checking and
393
- # future-proofing since x.size is allowed to None according to the
+ # size today. However, it is blocked for the sake of type-checking and
+ # future-proofing since x.size is allowed to be None according to the
394
# specification.
395
msg = "x must have a concrete size."
396
raise TypeError(msg)
0 commit comments