From 555a70e290d8a13deb178da64d1d994a10f6acaf Mon Sep 17 00:00:00 2001 From: Stijn Van Hoey Date: Tue, 1 Mar 2022 16:01:39 +0100 Subject: [PATCH] Fix class attributes versus init parameters (#6312) --- doc/internals/how-to-add-new-backend.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/internals/how-to-add-new-backend.rst b/doc/internals/how-to-add-new-backend.rst index 4e4ae4e2e14..940fa7a4d1e 100644 --- a/doc/internals/how-to-add-new-backend.rst +++ b/doc/internals/how-to-add-new-backend.rst @@ -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