jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1063980?usp=email )
Change subject: [doc] add missing language to code-block directive ......................................................................
[doc] add missing language to code-block directive
Change-Id: Ief53c4f775eb943e5cb859b72877477ba576a996 --- M pywikibot/_wbtypes.py M pywikibot/site/_datasite.py M pywikibot/site/_extensions.py 3 files changed, 8 insertions(+), 7 deletions(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/pywikibot/_wbtypes.py b/pywikibot/_wbtypes.py index 1a9a080..4764cfa 100644 --- a/pywikibot/_wbtypes.py +++ b/pywikibot/_wbtypes.py @@ -239,7 +239,7 @@
Carrying on from the earlier derivation of precision, since
- .. code-block:: + .. code-block:: python
precision = math.degrees( dim / (radius * math.cos(math.radians(self.lat)))) diff --git a/pywikibot/site/_datasite.py b/pywikibot/site/_datasite.py index ec1e919..f86babc 100644 --- a/pywikibot/site/_datasite.py +++ b/pywikibot/site/_datasite.py @@ -811,14 +811,14 @@ wbsetaliases: dict shall have the following structure:
- .. code-block:: + .. code-block:: python
{ 'language': value (str), 'add': list of language codes (str), 'remove': list of language codes (str), - 'set' list of language codes (str) - } + 'set' list of language codes (str), + }
'add' and 'remove' are alternative to 'set'
diff --git a/pywikibot/site/_extensions.py b/pywikibot/site/_extensions.py index 46490fd..e4da85e 100644 --- a/pywikibot/site/_extensions.py +++ b/pywikibot/site/_extensions.py @@ -90,9 +90,10 @@ values: category name corresponding to the 'key' quality level e.g. on en.wikisource:
- .. code-block:: - {0: 'Without text', 1: 'Not proofread', 2: 'Problematic', - 3: 'Proofread', 4: 'Validated'} + .. code-block:: python + + {0: 'Without text', 1: 'Not proofread', 2: 'Problematic', + 3: 'Proofread', 4: 'Validated'}
:param expiry: either a number of days or a datetime.timedelta object :type expiry: int (days), :py:obj:`datetime.timedelta`, False (config)
pywikibot-commits@lists.wikimedia.org