Skip to content

Commit f9916ea

Browse files
committed
Add type hint to modelcontext.
1 parent 8bb85df commit f9916ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymc3/model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import itertools
44
import threading
55
import warnings
6+
from typing import Optional, Dict, Any
67

78
import numpy as np
89
from pandas import Series
@@ -187,7 +188,7 @@ def get_context(cls):
187188
raise TypeError("No context on context stack")
188189

189190

190-
def modelcontext(model):
191+
def modelcontext(model: Optional['Model']) -> 'Model':
191192
"""return the given model or try to find it in the context if there was
192193
none supplied.
193194
"""

0 commit comments

Comments
 (0)