jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/999922?usp=email )

Change subject: [doc] Only use major and minor version numbers within 
documentation
......................................................................

[doc] Only use major and minor version numbers within documentation

Change-Id: I4afa2e42918f9a6dda3a547be51c363f2f6a878d
---
M pywikibot/data/api/_paraminfo.py
M pywikibot/family.py
M pywikibot/page/_basepage.py
M pywikibot/page/_filepage.py
M pywikibot/site/_apisite.py
M pywikibot/site/_generators.py
M tests/aspects.py
M tests/utils.py
8 files changed, 23 insertions(+), 14 deletions(-)

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




diff --git a/pywikibot/data/api/_paraminfo.py b/pywikibot/data/api/_paraminfo.py
index eb5b03d..b7cb846 100644
--- a/pywikibot/data/api/_paraminfo.py
+++ b/pywikibot/data/api/_paraminfo.py
@@ -1,6 +1,6 @@
 """Object representing API parameter information."""
 #
-# (C) Pywikibot team, 2014-2023
+# (C) Pywikibot team, 2014-2024
 #
 # Distributed under the terms of the MIT license.
 #
@@ -442,7 +442,7 @@
     def paraminfo_keys(cls) -> frozenset[str]:
         """Return module types.

-        .. deprecated:: 8.4.0
+        .. deprecated:: 8.4
         """
         return frozenset(['modules'])

@@ -451,6 +451,6 @@
     def preloaded_modules(self) -> frozenset[str] | set[str]:
         """Return set of preloaded modules.

-        .. deprecated:: 8.4.0
+        .. deprecated:: 8.4
         """
         return self._preloaded_modules
diff --git a/pywikibot/family.py b/pywikibot/family.py
index 4542749..cf48d4f 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -57,7 +57,7 @@
        :attr:`obsolete` setter was removed.
     .. versionchanged:: 8.3
        Having an initializer method a ``FutureWarning`` will be given.
-    .. versionchanged:: 9.0.0
+    .. versionchanged:: 9.0
        raises RuntimeError if an initializer method was found;
        :meth:`__post_init__` classmethod should be used instead.
     """
diff --git a/pywikibot/page/_basepage.py b/pywikibot/page/_basepage.py
index 52d5248..6af8970 100644
--- a/pywikibot/page/_basepage.py
+++ b/pywikibot/page/_basepage.py
@@ -726,7 +726,7 @@
     def editTime(self) -> pywikibot.Timestamp:
         """Return timestamp of last revision to page.

-        .. deprecated:: 8.0.0
+        .. deprecated:: 8.0
            Use :attr:`latest_revision.timestamp<latest_revision>`
            instead.
         """
diff --git a/pywikibot/page/_filepage.py b/pywikibot/page/_filepage.py
index ec71d41..94dc98f 100644
--- a/pywikibot/page/_filepage.py
+++ b/pywikibot/page/_filepage.py
@@ -6,7 +6,7 @@
 * FileInfo: a structure holding imageinfo of latest revision of FilePage
 """
 #
-# (C) Pywikibot team, 2008-2023
+# (C) Pywikibot team, 2008-2024
 #
 # Distributed under the terms of the MIT license.
 #
@@ -263,7 +263,7 @@
     def usingPages(self, **kwargs):  # noqa: N802
         """Yield Pages on which the file is displayed.

-        .. deprecated:: 7.4.0
+        .. deprecated:: 7.4
            Use :meth:`using_pages` instead.
         """
         return self.using_pages(**kwargs)
diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py
index 8004a75..33af282 100644
--- a/pywikibot/site/_apisite.py
+++ b/pywikibot/site/_apisite.py
@@ -349,7 +349,7 @@
     ) -> None:
         """Log the user in if not already logged in.

-        .. versionchanged:: 8.0.0
+        .. versionchanged:: 8.0
            lazy load cookies when logging in. This was dropped in 8.0.4
         .. versionchanged:: 8.0.4
            the *cookie_only* parameter was added and cookies are loaded
diff --git a/pywikibot/site/_generators.py b/pywikibot/site/_generators.py
index 763b0d9..93ca190 100644
--- a/pywikibot/site/_generators.py
+++ b/pywikibot/site/_generators.py
@@ -526,9 +526,9 @@
         - :meth:`pywikibot.Category.members`
         - :meth:`pywikibot.Category.subcategories`

-        .. versionchanged:: 4.0.0
+        .. versionchanged:: 4.0
            parameters except *category* are keyword arguments only.
-        .. versionchanged:: 8.0.0
+        .. versionchanged:: 8.0
            raises TypeError instead of Error if no Category is specified
         .. seealso:: :api:`Categorymembers`

diff --git a/tests/aspects.py b/tests/aspects.py
index 3a44491..efca054 100644
--- a/tests/aspects.py
+++ b/tests/aspects.py
@@ -312,7 +312,7 @@
     for other than the current site e.g. for the related data or image
     repositoy of the current site is ot possible.

-    .. versionadded:: 8.0.0
+    .. versionadded:: 8.0

     :param version_needed: The version needed
     :param reason: A reason for skipping the test.
diff --git a/tests/utils.py b/tests/utils.py
index 8057aa6..9465863 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -1,6 +1,6 @@
 """Test utilities."""
 #
-# (C) Pywikibot team, 2013-2023
+# (C) Pywikibot team, 2013-2024
 #
 # Distributed under the terms of the MIT license.
 #
@@ -469,7 +469,7 @@
 def execute(command: list[str], data_in=None, timeout=None):
     """Execute a command and capture outputs.

-    .. versionchanged:: 8.2.0
+    .. versionchanged:: 8.2
        *error* parameter was removed.

     :param command: executable to run and arguments to use
@@ -518,7 +518,7 @@
                 overrides: dict[str, str] | None = None) -> dict[str, Any]:
     """Execute the pwb.py script and capture outputs.

-    .. versionchanged:: 8.2.0
+    .. versionchanged:: 8.2
        the *error* parameter was removed.

     :param args: list of arguments for pwb.py

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/999922?usp=email
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: I4afa2e42918f9a6dda3a547be51c363f2f6a878d
Gerrit-Change-Number: 999922
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