Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/scipy/stats/biasedurn.py: 70%
10 statements
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-12 06:31 +0000
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-12 06:31 +0000
1# This file is not meant for public use and will be removed in SciPy v2.0.0.
4import warnings
5from . import _biasedurn
8__all__ = [ # noqa: F822
9 '_PyFishersNCHypergeometric',
10 '_PyWalleniusNCHypergeometric',
11 '_PyStochasticLib3'
12]
15def __dir__():
16 return __all__
19def __getattr__(name):
20 if name not in __all__:
21 raise AttributeError(
22 "scipy.stats.biasedurn is deprecated and has no attribute "
23 f"{name}.")
25 warnings.warn("the `scipy.stats.biasedurn` namespace is deprecated and "
26 "will be removed in SciPy v2.0.0.",
27 category=DeprecationWarning, stacklevel=2)
29 return getattr(_biasedurn, name)