Skip to content

Commit

Permalink
style: Remove unnecessary assertion
Browse files Browse the repository at this point in the history
Remove an unnecessary assertion. The type for `data` is well-documented
and checked by the type checker.
  • Loading branch information
riddell-stan committed Mar 1, 2021
1 parent 5a09a6b commit 6a53878
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions stan/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,6 @@ def grad_log_prob(self, unconstrained_parameters: Sequence[float]) -> float:
The unconstrained parameters are passed to the log_prob_grad
function in stan::model.
"""
assert isinstance(self.data, dict)

payload = {
"data": self.data,
"unconstrained_parameters": unconstrained_parameters,
Expand Down

0 comments on commit 6a53878

Please sign in to comment.