Skip to content

Commit ef5f91b

Browse files
Apply suggestions from code review
Co-authored-by: Michael Osthege <[email protected]>
1 parent ceddb5c commit ef5f91b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc/distributions/logprob.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from collections.abc import Mapping
1616
from functools import singledispatch
17-
from typing import Dict, List, Optional, Union
17+
from typing import Dict, List, Optional, Sequence, Union
1818

1919
import aesara
2020
import aesara.tensor as at
@@ -44,7 +44,7 @@ def logp_transform(op: Op):
4444
return None
4545

4646

47-
def _get_scaling(total_size, shape, ndim):
47+
def _get_scaling(total_size: Optional[Union[int, Sequence[int]]], shape, ndim: int):
4848
"""
4949
Gets scaling constant for logp.
5050

0 commit comments

Comments
 (0)