@@ -196,7 +196,7 @@ def __call__(self, target):
196196
197197 Returns
198198 -------
199- View
199+ :class:` View`
200200 ``View(self, target)``
201201 """
202202 return View (self , target )
@@ -297,7 +297,7 @@ def size(self):
297297
298298 Returns
299299 -------
300- int
300+ :class:` int`
301301 Index of the most significant bit of the *last* field plus one; or zero if there are
302302 no fields.
303303 """
@@ -369,7 +369,7 @@ def size(self):
369369
370370 Returns
371371 -------
372- int
372+ :class:` int`
373373 Index of the most significant bit of the *largest* field plus one; or zero if there are
374374 no fields.
375375 """
@@ -389,7 +389,7 @@ class ArrayLayout(Layout):
389389
390390 .. image:: _images/data/array_layout.svg
391391
392- can be described with::
392+ can be described with:
393393
394394 .. testcode::
395395
@@ -403,7 +403,7 @@ class ArrayLayout(Layout):
403403 ----------
404404 elem_shape : :ref:`shape-castable <lang-shapecasting>`
405405 Shape of an individual element.
406- length : int
406+ length : :class:` int`
407407 Amount of elements.
408408 """
409409 def __init__ (self , elem_shape , length ):
@@ -457,7 +457,7 @@ def size(self):
457457
458458 Returns
459459 -------
460- int
460+ :class:` int`
461461 Size of an individual element multiplied by their amount.
462462 """
463463 return Shape .cast (self ._elem_shape ).width * self .length
@@ -491,7 +491,7 @@ class FlexibleLayout(Layout):
491491
492492 Attributes
493493 ----------
494- size : int
494+ size : :class:` int`
495495 Size of the layout.
496496 fields : mapping of :class:`str` or :class:`int` to :class:`Field`
497497 Fields defined in the layout.
0 commit comments