We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bb85df commit f9916eaCopy full SHA for f9916ea
pymc3/model.py
@@ -3,6 +3,7 @@
3
import itertools
4
import threading
5
import warnings
6
+from typing import Optional, Dict, Any
7
8
import numpy as np
9
from pandas import Series
@@ -187,7 +188,7 @@ def get_context(cls):
187
188
raise TypeError("No context on context stack")
189
190
-def modelcontext(model):
191
+def modelcontext(model: Optional['Model']) -> 'Model':
192
"""return the given model or try to find it in the context if there was
193
none supplied.
194
"""
0 commit comments