File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ def __init__(
361
361
self ._shape = Shape (getattr (value , "shape" ), frozen = True ) # noqa: B009
362
362
else :
363
363
self ._shape = shape
364
- self ._shape ._frozen = True
364
+ self ._shape .freeze ()
365
365
if dtype is None :
366
366
if isinstance (value , np .ndarray ):
367
367
self ._dtype = _enums .DataType .from_numpy (value .dtype )
@@ -564,7 +564,7 @@ def __init__(
564
564
self ._dtype : _enums .DataType = dtype
565
565
self .name : str = name # mutable
566
566
self ._shape : Shape = shape
567
- self ._shape ._frozen = True
567
+ self ._shape .freeze ()
568
568
self .doc_string : str | None = doc_string # mutable
569
569
self ._array : np .ndarray | None = None
570
570
self .raw : mmap .mmap | None = None
@@ -783,7 +783,7 @@ def __init__(
783
783
self ._shape = Shape (getattr (value , "shape" ), frozen = True ) # noqa: B009
784
784
else :
785
785
self ._shape = shape
786
- self ._shape ._frozen = True
786
+ self ._shape .freeze ()
787
787
self ._raw = value
788
788
self .name = name
789
789
self .doc_string = doc_string
You can’t perform that action at this time.
0 commit comments