Skip to content

Commit

Permalink
Try removing Optional / = None completely
Browse files Browse the repository at this point in the history
I don't think these are necessary at all. The tests will tell us so.
  • Loading branch information
thomasaarholt committed Sep 2, 2024
1 parent 0d4c57f commit 334b232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymc/distributions/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,8 @@ def change_symbolic_rv_size(op: SymbolicRandomVariable, rv, new_size, expand) ->
class Distribution(metaclass=DistributionMeta):
"""Statistical distribution"""

rv_op: Callable[..., TensorVariable] | None = None
rv_type: MetaType | None = None
rv_op: Callable[..., TensorVariable]
rv_type: MetaType

def __new__(
cls,
Expand Down

0 comments on commit 334b232

Please sign in to comment.