Skip to content

Commit 47f6d9e

Browse files
ArmavicaricardoV94
authored andcommitted
Fix syntax of some documentation code blocks
1 parent f8e24fc commit 47f6d9e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pymc/distributions/shape_utils.py

+5
Original file line numberDiff line numberDiff line change
@@ -109,22 +109,27 @@ def broadcast_dist_samples_shape(shapes, size=None):
109109
Examples
110110
--------
111111
.. code-block:: python
112+
112113
size = 100
113114
shape0 = (size,)
114115
shape1 = (size, 5)
115116
shape2 = (size, 4, 5)
116117
out = broadcast_dist_samples_shape([shape0, shape1, shape2],
117118
size=size)
118119
assert out == (size, 4, 5)
120+
119121
.. code-block:: python
122+
120123
size = 100
121124
shape0 = (size,)
122125
shape1 = (5,)
123126
shape2 = (4, 5)
124127
out = broadcast_dist_samples_shape([shape0, shape1, shape2],
125128
size=size)
126129
assert out == (size, 4, 5)
130+
127131
.. code-block:: python
132+
128133
size = 100
129134
shape0 = (1,)
130135
shape1 = (5,)

pymc/pytensorf.py

+1
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,7 @@ def collect_default_updates(
808808
Examples
809809
--------
810810
.. code:: python
811+
811812
import pymc as pm
812813
from pytensor.scan import scan
813814
from pymc.pytensorf import collect_default_updates

0 commit comments

Comments
 (0)