Skip to content

Commit 1c68482

Browse files
Add type hints to astep methods
1 parent c65baf7 commit 1c68482

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pymc3/step_methods/arraystep.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def step(self, point: Dict[str, np.ndarray]):
164164

165165
return point_new
166166

167-
def astep(self, apoint, point):
167+
def astep(self, apoint: RaveledVars, point: Dict[str, np.ndarray]):
168168
raise NotImplementedError()
169169

170170

@@ -225,7 +225,7 @@ def step(self, point):
225225

226226
return new_point
227227

228-
def astep(self, apoint):
228+
def astep(self, apoint: RaveledVars):
229229
raise NotImplementedError()
230230

231231

pymc3/step_methods/metropolis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def reset_tuning(self):
197197
setattr(self, attr, initial_value)
198198
return
199199

200-
def astep(self, q0):
200+
def astep(self, q0: RaveledVars):
201201
if not self.steps_until_tune and self.tune:
202202
# Tune scaling parameter
203203
self.scaling = tune(self.scaling, self.accepted / float(self.tune_interval))

0 commit comments

Comments
 (0)