Skip to content

Commit 2e84b30

Browse files
committed
Try removing Optional / = None completely
I don't think these are necessary at all. The tests will tell us so.
1 parent af91def commit 2e84b30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc/distributions/distribution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,8 @@ def change_symbolic_rv_size(op: SymbolicRandomVariable, rv, new_size, expand) ->
423423
class Distribution(metaclass=DistributionMeta):
424424
"""Statistical distribution"""
425425

426-
rv_op: Callable[..., TensorVariable] | None = None
427-
rv_type: MetaType | None = None
426+
rv_op: Callable[..., TensorVariable]
427+
rv_type: MetaType
428428

429429
def __new__(
430430
cls,

0 commit comments

Comments
 (0)