diff --git a/mypy.ini b/mypy.ini index 564fc468dfc6..a78a0b1e276a 100644 --- a/mypy.ini +++ b/mypy.ini @@ -393,6 +393,9 @@ ignore_errors = True [mypy-scipy.stats.tests.test_qmc] ignore_errors = True +[mypy-scipy.stats.tests.test_sampling] +ignore_errors = True + # # Files referencing compiled code that needs stubs added. # diff --git a/scipy/stats/unuran/__init__.py b/scipy/stats/unuran/__init__.py index b8e54c178ae5..8d7e80ca08df 100644 --- a/scipy/stats/unuran/__init__.py +++ b/scipy/stats/unuran/__init__.py @@ -1 +1,4 @@ -from .unuran_wrapper import * +from .unuran_wrapper import ( + TransformedDensityRejection, + DiscreteAliasUrn +) diff --git a/scipy/stats/unuran/__init__.pyi b/scipy/stats/unuran/__init__.pyi new file mode 100644 index 000000000000..0d3c76eff6dd --- /dev/null +++ b/scipy/stats/unuran/__init__.pyi @@ -0,0 +1,4 @@ +from .unuran_wrapper import ( + TransformedDensityRejection as TransformedDensityRejection, + DiscreteAliasUrn as DiscreteAliasUrn +)