Skip to content

Commit

Permalink
Fix class attributes versus init parameters (#6312)
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvanhoey authored Mar 1, 2022
1 parent 613a8fd commit 555a70e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/internals/how-to-add-new-backend.rst
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ This is an example ``BackendArray`` subclass implementation:
# other backend specific keyword arguments
):
self.shape = shape
self.dtype = lock
self.lock = dtype
self.dtype = dtype
self.lock = lock
def __getitem__(
self, key: xarray.core.indexing.ExplicitIndexer
Expand Down

0 comments on commit 555a70e

Please sign in to comment.