Coverage for /usr/lib/python3/dist-packages/scipy/stats/biasedurn.py: 50%

10 statements  

« prev     ^ index     » next       coverage.py v7.9.1, created at 2025-06-14 15:55 +0200

1# This file is not meant for public use and will be removed in SciPy v2.0.0. 

2 

3 

4import warnings 

5from . import _biasedurn 

6 

7 

8__all__ = [ # noqa: F822 

9 '_PyFishersNCHypergeometric', 

10 '_PyWalleniusNCHypergeometric', 

11 '_PyStochasticLib3' 

12] 

13 

14 

15def __dir__(): 

16 return __all__ 

17 

18 

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}.") 

24 

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) 

28 

29 return getattr(_biasedurn, name)