Skip to content

Commit

Permalink
py310 empty TypeVarTuple fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham committed Dec 6, 2023
1 parent 605a7a9 commit f0081c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lmo/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,11 @@ def nnlf(
) -> float: ...


class RVContinuousFrozen(RVContinuousBase[()], Protocol[Unpack[Ps]]):
class RVContinuousFrozen(
# somehow RVContinuousBase[()] fails on (only) Python 3.10.
RVContinuousBase[Unpack[tuple[()]]],
Protocol[Unpack[Ps]],
):
"""Generic type stub for [`rv_continuous_frozen`]."""
args: (
tuple[Unpack[Ps]]
Expand Down

0 comments on commit f0081c8

Please # to comment.