diff --git a/array_api_compat/common/_helpers.py b/array_api_compat/common/_helpers.py index 10134367..b43e3d22 100644 --- a/array_api_compat/common/_helpers.py +++ b/array_api_compat/common/_helpers.py @@ -1054,7 +1054,7 @@ def is_lazy_array(x: object) -> TypeGuard[_ArrayApiObj]: try: bool(x) return False - # The Array API standard dictactes that __bool__ should raise TypeError if the + # The Array API standard dictates that __bool__ should raise TypeError if the # output cannot be defined. # Here we allow for it to raise arbitrary exceptions, e.g. like Dask does. except Exception: diff --git a/docs/changelog.md b/docs/changelog.md index 527dd3bd..55449df0 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -257,7 +257,7 @@ Thomas Li than setting the conjugation bit, as arrays with the conjugation bit set do not support some APIs. -- `torch.sign` is now wrapped to support complex numbers and propogate nans +- `torch.sign` is now wrapped to support complex numbers and propagate nans properly. ### Minor Changes diff --git a/torch-xfails.txt b/torch-xfails.txt index 3b75972b..22aeed8f 100644 --- a/torch-xfails.txt +++ b/torch-xfails.txt @@ -6,7 +6,7 @@ # Indexing does not support negative step array_api_tests/test_array_object.py::test_getitem array_api_tests/test_array_object.py::test_setitem -# Masking doesn't suport 0 dimensions in the mask +# Masking doesn't support 0 dimensions in the mask array_api_tests/test_array_object.py::test_getitem_masking # Overflow error from large inputs