jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/824856 )

Change subject: [doc] Update some version hints
......................................................................

[doc] Update some version hints

Change-Id: Idcebe4eba4ffcae5fe797ec57fae9cfaf1f60e61
---
M ROADMAP.rst
M pywikibot/site/_generators.py
M pywikibot/textlib.py
3 files changed, 11 insertions(+), 4 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/ROADMAP.rst b/ROADMAP.rst
index 4a13866..2a9c1b8 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -7,6 +7,7 @@
 Deprecations
 ^^^^^^^^^^^^

+* 7.6.0: :mod:`tools.itertools` datatypes should no longer imported from 
:mod:`pywikibot.tools`
 * 7.6.0: :mod:`tools.collections` datatypes should no longer imported from 
:mod:`pywikibot.tools`
 * 7.5.0: :mod:`pywikibot.textlib`.tzoneFixedOffset class will be removed in 
favour of :class:`pywikibot.time.TZoneFixedOffset`
 * 7.4.0: `FilePage.usingPages()` was renamed to 
:meth:`using_pages()<pywikibot.FilePage.using_pages>`
diff --git a/pywikibot/site/_generators.py b/pywikibot/site/_generators.py
index aad1b86..021ac70 100644
--- a/pywikibot/site/_generators.py
+++ b/pywikibot/site/_generators.py
@@ -101,6 +101,9 @@
         Pages are iterated in the same order than in the underlying pagelist.
         In case of duplicates in a groupsize batch, return the first entry.

+        .. versionchanged:: 7.6
+           ``content`` parameter was added.
+
         :param pagelist: an iterable that returns Page objects
         :param groupsize: how many Pages to query at a time
         :param templates: preload pages (typically templates) transcluded in
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py
index d6eab05..f8e1675 100644
--- a/pywikibot/textlib.py
+++ b/pywikibot/textlib.py
@@ -1966,14 +1966,17 @@
             return False
         return True

-    def timestripper(self, line):
+    def timestripper(self, line: str) -> Optional['pywikibot.Timestamp']:
         """
         Find timestamp in line and convert it to time zone aware datetime.

-        All the following items must be matched, otherwise None is returned:
-        -. year, month, hour, time, day, minute, tzinfo
+        All the following items must be matched, otherwise None is
+        returned: -. year, month, hour, time, day, minute, tzinfo
+
+        .. versionchanged:: 7.6
+           HTML parts are removed from line
+
         :return: A timestamp found on the given line
-        :rtype: pywikibot.Timestamp
         """
         # Try to maintain gaps that are used in _valid_date_dict_positions()
         def censor_match(match):

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/824856
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Idcebe4eba4ffcae5fe797ec57fae9cfaf1f60e61
Gerrit-Change-Number: 824856
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to