Skip to content

Commit 15ed144

Browse files
committed
Fix syntax for 3.5 compatibility.
1 parent 6328157 commit 15ed144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc3/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def modelcontext(model: Optional['Model']) -> Optional['Model']:
283283
none supplied.
284284
"""
285285
if model is None:
286-
found: Optional['Model'] = Model.get_context(error_if_none=False)
286+
found = Model.get_context(error_if_none=False) # type: Optional['Model']
287287
if found is None:
288288
raise ValueError("No model on context stack.")
289289
return found

0 commit comments

Comments
 (0)