What happened?
https://docs.xarray.dev/en/stable/internals/how-to-add-new-backend.html#indexing-examples
I believe there's a typo in the BASIC indexing support example:
# shall support integers
backend_array._raw_indexing_method(1, 1)
Should be:
# shall support integers
backend_array._raw_indexing_method((1, 1))
Suggestion of possible fixes:
- Make sure it is a typo.
- Create a valid custom MyBackendArray and initialize it. So it is easier to tell if it's a typo.
- Add type hinting so mypy can easier catch these errors.
What did you expect to happen?
No response
Minimal Complete Verifiable Example
No response
MVCE confirmation
Relevant log output
No response
Anything else we need to know?
No response
Environment
Details
What happened?
https://docs.xarray.dev/en/stable/internals/how-to-add-new-backend.html#indexing-examples
I believe there's a typo in the BASIC indexing support example:
Should be:
Suggestion of possible fixes:
What did you expect to happen?
No response
Minimal Complete Verifiable Example
No response
MVCE confirmation
Relevant log output
No response
Anything else we need to know?
No response
Environment
Details