Skip to content

Commit 61a1d01

Browse files
committed
simplify default fill value class
1 parent 7328205 commit 61a1d01

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/zarr/core/array.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,19 +159,9 @@ class DefaultFillValue:
159159
- fill_value = None: fill_value saved as null
160160
161161
This allows backwards compatibility with zarr format 2.
162-
163-
This is implemented as a singleton.
164162
"""
165163

166-
_instance = None
167-
168-
def __new__(cls) -> Self:
169-
if cls._instance is None:
170-
cls._instance = super().__new__(cls)
171-
return cls._instance
172-
173164

174-
# Create the singleton instance
175165
DEFAULT_FILL_VALUE = DefaultFillValue()
176166

177167

0 commit comments

Comments
 (0)