doccer.py 766 B

1234567891011121314151617181920212223242526272829
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. import warnings
  3. from scipy._lib import doccer
  4. __all__ = [ # noqa: F822
  5. 'docformat', 'inherit_docstring_from', 'indentcount_lines',
  6. 'filldoc', 'unindent_dict', 'unindent_string', 'extend_notes_in_docstring',
  7. 'replace_notes_in_docstring'
  8. ]
  9. def __dir__():
  10. return __all__
  11. def __getattr__(name):
  12. if name not in __all__:
  13. raise AttributeError(
  14. "scipy.misc.doccer is deprecated and has no attribute "
  15. f"{name}.")
  16. warnings.warn("The `scipy.misc.doccer` namespace is deprecated and "
  17. "will be removed in SciPy v2.0.0.",
  18. category=DeprecationWarning, stacklevel=2)
  19. return getattr(doccer, name)