add_newdocs.py 644 B

1234567891011121314151617181920212223
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. import warnings
  3. from . import _add_newdocs
  4. __all__ = ['get', 'add_newdoc', 'Dict', 'docdict'] # noqa: F822
  5. def __dir__():
  6. return __all__
  7. def __getattr__(name):
  8. if name not in __all__:
  9. raise AttributeError(
  10. "scipy.special.add_newdocs is deprecated and has no attribute "
  11. f"{name}.")
  12. warnings.warn("The `scipy.special.add_newdocs` namespace is deprecated."
  13. " and will be removed in SciPy v2.0.0.",
  14. category=DeprecationWarning, stacklevel=2)
  15. return getattr(_add_newdocs, name)