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

Change subject: doc: fix spelling mistakes and annotation issues
......................................................................

doc: fix spelling mistakes and annotation issues

Change-Id: I86f0ebcb3fec973757a5007a0486c2db8ed7cb60
---
M pywikibot/family.py
M scripts/maintenance/addwikis.py
M tests/time_tests.py
3 files changed, 8 insertions(+), 9 deletions(-)

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




diff --git a/pywikibot/family.py b/pywikibot/family.py
index 60868a0..dd327f9 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -35,7 +35,7 @@

 # Legal characters for Family.name and Family.langs keys
 NAME_CHARACTERS = string.ascii_letters + string.digits
-# nds_nl code alias requires "_"n
+# nds_nl code alias requires "_"
 # dash must be the last char to be reused as regex
 CODE_CHARACTERS = string.ascii_lowercase + string.digits + '_-'
 
@@ -87,7 +87,7 @@
         else:
             raise RuntimeError(fill(
                 f'__post_init__() method of {cls.__module__}.{cls.__name__}'
-                ' class or its superclass must be a classmethod. Please  check'
+                ' class or its superclass must be a classmethod. Please check'
                 ' your family file.', width=66))

         return cls.instance
@@ -193,11 +193,9 @@
     """

     interwiki_forward: str | None = None
-    """Some families, e.
-
-    g. commons and meta, are not multilingual and forward interlanguage
-    links to another family (wikipedia). These families can set this
-    variable to the name of the target family.
+    """Some families, e.g. commons and meta, are not multilingual and
+    forward interlanguage links to another family (wikipedia). These
+    families can set this variable to the name of the target family.
     """

     #: Some languages belong to a group where the possibility is high
diff --git a/scripts/maintenance/addwikis.py b/scripts/maintenance/addwikis.py
index 802c18f..b2faaaf 100755
--- a/scripts/maintenance/addwikis.py
+++ b/scripts/maintenance/addwikis.py
@@ -77,7 +77,7 @@
     return text


-def update_known_codes(families: list[str]) -> set[str]:
+def update_known_codes(families: list[str]) -> None:
     """Collect all codes from all families and update Family.known_codes.

     .. version-added:: 11.3
diff --git a/tests/time_tests.py b/tests/time_tests.py
index f80f429..fc6581e 100755
--- a/tests/time_tests.py
+++ b/tests/time_tests.py
@@ -231,7 +231,8 @@

         for mw_ts, ts in tests[1:-1]:
             with self.subTest(timestamp=mw_ts), self.assertRaisesRegex(
-                    ValueError, f'time data {mw_ts!r} does not match MW'):
+                ValueError,
+                    f'time data {mw_ts!r} does not match MW format'):
                 Timestamp.fromtimestampformat(mw_ts, strict=True)

     def test_add_timedelta(self) -> None:

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

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

Reply via email to