Skip to content

Commit c2aab56

Browse files
ricardoV94twiecki
authored andcommitted
Fix missing fstrings
1 parent f403013 commit c2aab56

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pymc3/distributions/distribution.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ def _validate_shape_dims_size(
135135
) -> Tuple[Optional[Shape], Optional[Dims], Optional[Size]]:
136136
# Raise on unsupported parametrization
137137
if shape is not None and dims is not None:
138-
raise ValueError("Passing both `shape` ({shape}) and `dims` ({dims}) is not supported!")
138+
raise ValueError(f"Passing both `shape` ({shape}) and `dims` ({dims}) is not supported!")
139139
if dims is not None and size is not None:
140-
raise ValueError("Passing both `dims` ({dims}) and `size` ({size}) is not supported!")
140+
raise ValueError(f"Passing both `dims` ({dims}) and `size` ({size}) is not supported!")
141141
if shape is not None and size is not None:
142-
raise ValueError("Passing both `shape` ({shape}) and `size` ({size}) is not supported!")
142+
raise ValueError(f"Passing both `shape` ({shape}) and `size` ({size}) is not supported!")
143143

144144
# Raise on invalid types
145145
if not isinstance(shape, (type(None), int, list, tuple, Variable)):
@@ -172,7 +172,7 @@ def _validate_shape_dims_size(
172172
if not _valid_ellipsis_position(dims):
173173
raise ValueError(f"Ellipsis in `dims` may only appear in the last position. Actual: {dims}")
174174
if size is not None and Ellipsis in size:
175-
raise ValueError("The `size` parameter cannot contain an Ellipsis. Actual: {size}")
175+
raise ValueError(f"The `size` parameter cannot contain an Ellipsis. Actual: {size}")
176176
return shape, dims, size
177177

178178

0 commit comments

Comments
 (0)