Skip to content

Commit

Permalink
🩹 stats: adjust _distribution_infrastructure._Domain.symbol after s…
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham committed Dec 20, 2024
1 parent 7f6dcee commit 60908d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scipy-stubs/stats/_distribution_infrastructure.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import abc
from collections.abc import Mapping, Sequence, Set as AbstractSet
from typing import Any, ClassVar, Final, Literal as L, TypeAlias, overload
from typing import Any, Final, Literal as L, TypeAlias, overload
from typing_extensions import LiteralString, TypeVar, override

import numpy as np
Expand All @@ -23,7 +23,9 @@ _FloatT = TypeVar("_FloatT", bound=np.floating[Any])

# TODO(jorenham): Generic dtype
class _Domain(abc.ABC):
symbols: ClassVar[Mapping[float, LiteralString]]
# NOTE: This is a `ClassVar[dict[str, float]]` that's overridden as instance attribute in `_SimpleDomain`.
# https://github.com/scipy/scipy/pull/22139
symbols: Mapping[float, LiteralString] = ...

@abc.abstractmethod
@override
Expand Down

0 comments on commit 60908d1

Please sign in to comment.