Skip to content

Commit c44f1a2

Browse files
committed
use anonymous rst links
1 parent 80bd097 commit c44f1a2

File tree

7 files changed

+28
-28
lines changed

7 files changed

+28
-28
lines changed

src/zarr/core/dtype/npy/bool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Bool(ZDType[np.dtypes.BoolDType, np.bool_], HasItemSize):
4141
----------
4242
This class implements the boolean data type defined in Zarr V2 and V3.
4343
44-
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`_ specification documents for details.
44+
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`__ specification documents for details.
4545
"""
4646

4747
_zarr_v3_name: ClassVar[Literal["bool"]] = "bool"

src/zarr/core/dtype/npy/bytes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class NullterminatedBytesJSON_V2(DTypeConfig_V2[str, None]):
5656
References
5757
----------
5858
The structure of the ``name`` field is defined in the Zarr V2
59-
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_.
59+
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__.
6060
6161
6262
Examples
@@ -105,7 +105,7 @@ class RawBytesJSON_V2(DTypeConfig_V2[str, None]):
105105
References
106106
----------
107107
The structure of the ``name`` field is defined in the Zarr V2
108-
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_.
108+
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__.
109109
110110
111111
Examples
@@ -149,7 +149,7 @@ class VariableLengthBytesJSON_V2(DTypeConfig_V2[Literal["|O"], Literal["vlen-byt
149149
References
150150
----------
151151
The structure of the ``name`` field is defined in the Zarr V2
152-
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_.
152+
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__.
153153
154154
Examples
155155
--------

src/zarr/core/dtype/npy/float.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ class Float16(BaseFloat[np.dtypes.Float16DType, np.float16]):
324324
----------
325325
This class implements the float16 data type defined in Zarr V2 and V3.
326326
327-
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`_ specification documents for details.
327+
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`__ specification documents for details.
328328
"""
329329

330330
dtype_cls = np.dtypes.Float16DType
@@ -361,7 +361,7 @@ class Float32(BaseFloat[np.dtypes.Float32DType, np.float32]):
361361
----------
362362
This class implements the float32 data type defined in Zarr V2 and V3.
363363
364-
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`_ specification documents for details.
364+
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`__ specification documents for details.
365365
"""
366366

367367
dtype_cls = np.dtypes.Float32DType
@@ -398,7 +398,7 @@ class Float64(BaseFloat[np.dtypes.Float64DType, np.float64]):
398398
----------
399399
This class implements the float64 data type defined in Zarr V2 and V3.
400400
401-
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`_ specification documents for details.
401+
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`__ specification documents for details.
402402
"""
403403

404404
dtype_cls = np.dtypes.Float64DType

src/zarr/core/dtype/npy/int.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class Int8(BaseInt[np.dtypes.Int8DType, np.int8]):
242242
----------
243243
This class implements the 8-bit signed integer data type defined in Zarr V2 and V3.
244244
245-
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`_ specification documents for details.
245+
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`__ specification documents for details.
246246
"""
247247

248248
dtype_cls = np.dtypes.Int8DType
@@ -398,7 +398,7 @@ class UInt8(BaseInt[np.dtypes.UInt8DType, np.uint8]):
398398
----------
399399
This class implements the 8-bit unsigned integer data type defined in Zarr V2 and V3.
400400
401-
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`_ specification documents for details.
401+
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`__ specification documents for details.
402402
"""
403403

404404
dtype_cls = np.dtypes.UInt8DType
@@ -545,7 +545,7 @@ class Int16(BaseInt[np.dtypes.Int16DType, np.int16], HasEndianness):
545545
----------
546546
This class implements the 16-bit signed integer data type defined in Zarr V2 and V3.
547547
548-
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`_ specification documents for details.
548+
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`__ specification documents for details.
549549
"""
550550

551551
dtype_cls = np.dtypes.Int16DType
@@ -707,7 +707,7 @@ class UInt16(BaseInt[np.dtypes.UInt16DType, np.uint16], HasEndianness):
707707
----------
708708
This class implements the unsigned 16-bit unsigned integer data type defined in Zarr V2 and V3.
709709
710-
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`_ specification documents for details.
710+
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`__ specification documents for details.
711711
"""
712712

713713
dtype_cls = np.dtypes.UInt16DType
@@ -869,7 +869,7 @@ class Int32(BaseInt[np.dtypes.Int32DType, np.int32], HasEndianness):
869869
----------
870870
This class implements the 32-bit signed integer data type defined in Zarr V2 and V3.
871871
872-
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`_ specification documents for details.
872+
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`__ specification documents for details.
873873
"""
874874

875875
dtype_cls = np.dtypes.Int32DType
@@ -1052,7 +1052,7 @@ class UInt32(BaseInt[np.dtypes.UInt32DType, np.uint32], HasEndianness):
10521052
----------
10531053
This class implements the 32-bit unsigned integer data type defined in Zarr V2 and V3.
10541054
1055-
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`_ specification documents for details.
1055+
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`__ specification documents for details.
10561056
"""
10571057

10581058
dtype_cls = np.dtypes.UInt32DType
@@ -1210,7 +1210,7 @@ class Int64(BaseInt[np.dtypes.Int64DType, np.int64], HasEndianness):
12101210
----------
12111211
This class implements the 64-bit signed integer data type defined in Zarr V2 and V3.
12121212
1213-
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`_ specification documents for details.
1213+
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`__ specification documents for details.
12141214
"""
12151215

12161216
dtype_cls = np.dtypes.Int64DType
@@ -1368,7 +1368,7 @@ class UInt64(BaseInt[np.dtypes.UInt64DType, np.uint64], HasEndianness):
13681368
----------
13691369
This class implements the unsigned 64-bit integer data type defined in Zarr V2 and V3.
13701370
1371-
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`_ specification documents for details.
1371+
See the `Zarr V2 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__ and `Zarr V3 <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/data-types/index.rst>`__ specification documents for details.
13721372
"""
13731373

13741374
dtype_cls = np.dtypes.UInt64DType

src/zarr/core/dtype/npy/string.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class FixedLengthUTF32JSON_V2(DTypeConfig_V2[str, None]):
7070
References
7171
----------
7272
The structure of the ``name`` field is defined in the Zarr V2
73-
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_.
73+
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__.
7474
7575
Examples
7676
--------
@@ -434,7 +434,7 @@ class VariableLengthUTF8JSON_V2(DTypeConfig_V2[Literal["|O"], Literal["vlen-utf8
434434
References
435435
----------
436436
The structure of the ``name`` field is defined in the Zarr V2
437-
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_.
437+
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__.
438438
439439
440440
Examples
@@ -467,7 +467,7 @@ class UTF8Base(ZDType[TDType_co, str], HasObjectCodec):
467467
----------
468468
This data type does not have a Zarr V3 specification.
469469
470-
The Zarr V2 data type specification can be found `here <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_.
470+
The Zarr V2 data type specification can be found `here <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__.
471471
"""
472472

473473
_zarr_v3_name: ClassVar[Literal["string"]] = "string"

src/zarr/core/dtype/npy/structured.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class StructuredJSON_V2(DTypeConfig_V2[StructuredName_V2, None]):
4141
References
4242
----------
4343
The structure of the ``name`` field is defined in the Zarr V2
44-
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_.
44+
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__.
4545
4646
Examples
4747
--------
@@ -100,7 +100,7 @@ class Structured(ZDType[np.dtypes.VoidDType[int], np.void], HasItemSize):
100100
----------
101101
This data type does not have a Zarr V3 specification.
102102
103-
The Zarr V2 data type specification can be found `here <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_.
103+
The Zarr V2 data type specification can be found `here <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__.
104104
"""
105105

106106
_zarr_v3_name: ClassVar[Literal["structured"]] = "structured"

src/zarr/core/dtype/npy/time.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class DateTime64JSON_V3(NamedConfig[Literal["numpy.datetime64"], TimeConfig]):
129129
References
130130
----------
131131
This representation is defined in the ``numpy.datetime64``
132-
`specification document <https://zarr-specs.readthedocs.io/en/latest/spec/v3/datatypes.html#numpy-datetime64>`_.
132+
`specification document <https://zarr-specs.readthedocs.io/en/latest/spec/v3/datatypes.html#numpy-datetime64>`__.
133133
134134
Examples
135135
--------
@@ -152,7 +152,7 @@ class TimeDelta64JSON_V3(NamedConfig[Literal["numpy.timedelta64"], TimeConfig]):
152152
References
153153
----------
154154
This representation is defined in the numpy.timedelta64
155-
`specification document <https://zarr-specs.readthedocs.io/en/latest/spec/v3/datatypes.html#numpy-timedelta64>`_.
155+
`specification document <https://zarr-specs.readthedocs.io/en/latest/spec/v3/datatypes.html#numpy-timedelta64>`__.
156156
157157
Examples
158158
--------
@@ -178,7 +178,7 @@ class TimeDelta64JSON_V2(DTypeConfig_V2[str, None]):
178178
References
179179
----------
180180
The structure of the ``name`` field is defined in the Zarr V2
181-
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_.
181+
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__.
182182
183183
184184
Examples
@@ -202,7 +202,7 @@ class DateTime64JSON_V2(DTypeConfig_V2[str, None]):
202202
References
203203
----------
204204
The structure of the ``name`` field is defined in the Zarr V2
205-
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_.
205+
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__.
206206
207207
208208
Examples
@@ -344,10 +344,10 @@ class TimeDelta64(TimeDTypeBase[np.dtypes.TimeDelta64DType, np.timedelta64], Has
344344
References
345345
----------
346346
The Zarr V2 representation of this data type is defined in the Zarr V2
347-
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_.
347+
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__.
348348
349349
The Zarr V3 representation of this data type is defined in the ``numpy.timedelta64``
350-
`specification document <https://github.com/zarr-developers/zarr-extensions/tree/main/data-types/numpy.timedelta64>`_
350+
`specification document <https://github.com/zarr-developers/zarr-extensions/tree/main/data-types/numpy.timedelta64>`__
351351
"""
352352

353353
# mypy infers the type of np.dtypes.TimeDelta64DType to be
@@ -612,10 +612,10 @@ class DateTime64(TimeDTypeBase[np.dtypes.DateTime64DType, np.datetime64], HasEnd
612612
References
613613
----------
614614
The Zarr V2 representation of this data type is defined in the Zarr V2
615-
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`_.
615+
`specification document <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v2/v2.0.rst#data-type-encoding>`__.
616616
617617
The Zarr V3 representation of this data type is defined in the ``numpy.datetime64``
618-
`specification document <https://github.com/zarr-developers/zarr-extensions/tree/main/data-types/numpy.datetime64>`_
618+
`specification document <https://github.com/zarr-developers/zarr-extensions/tree/main/data-types/numpy.datetime64>`__
619619
"""
620620

621621
dtype_cls = np.dtypes.DateTime64DType # type: ignore[assignment]

0 commit comments

Comments
 (0)