jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1100733?usp=email )
Change subject: doc: show flow api until this module is removed finally ......................................................................
doc: show flow api until this module is removed finally
also remove duplicate __all__
Change-Id: I81f430b698079318a1f9d72e65e51047705ff6ff --- M pywikibot/flow.py 1 file changed, 13 insertions(+), 16 deletions(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/pywikibot/flow.py b/pywikibot/flow.py index e5b1365..34997dd 100644 --- a/pywikibot/flow.py +++ b/pywikibot/flow.py @@ -9,10 +9,13 @@ .. deprecated:: 9.4 Structured Discussions extension is not maintained and will be removed. Users are encouraged to stop using it. (:phab:`T371180`) +.. versionremoved:: 10.0 + (:phab:`T381551`) .. seealso:: + - https://www.mediawiki.org/wiki/Extension:StructuredDiscussions - https://www.mediawiki.org/wiki/Structured_Discussions - https://www.mediawiki.org/wiki/Structured_Discussions/Wikis - - https://www.mediawiki.org/wiki/Extension:StructuredDiscussions + - https://www.mediawiki.org/wiki/Structured_Discussions/Deprecation """ # # (C) Pywikibot team, 2015-2024 @@ -36,6 +39,7 @@ ) from pywikibot.page import BasePage, PageSourceType, User from pywikibot.tools import ( + SPHINX_RUNNING, ModuleDeprecationWrapper, cached, deprecated_args, @@ -55,14 +59,6 @@ r'is deprecated since release 9.4.0.')
-__all__ = ( - 'Board', - 'FlowPage', - 'Post', - 'Topic', -) - - class FlowPage(BasePage, abc.ABC):
"""The base page meta class for the Flow extension. @@ -625,10 +621,11 @@ self.site.thank_post(self)
-wrapper = ModuleDeprecationWrapper(__name__) -for cls in __all__: - wrapper.add_deprecated_attr( - cls, - replacement_name='', - since='9.4.0', - future_warning=False) +if not SPHINX_RUNNING: + wrapper = ModuleDeprecationWrapper(__name__) + for cls in __all__: + wrapper.add_deprecated_attr( + cls, + replacement_name='', + since='9.4.0' + )