jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/433999 )
Change subject: Fix the expected type of `category` parameter of `suppress_warnings` ......................................................................
Fix the expected type of `category` parameter of `suppress_warnings`
`category` should be a type like Warning or DeprecationWarning, not an instance of Warning.
Change-Id: I4400bfe42981b3b90ab0ada149d07c3548f8161a --- M pywikibot/tools/__init__.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/tools/__init__.py b/pywikibot/tools/__init__.py index 08677a9..a68cbb3 100644 --- a/pywikibot/tools/__init__.py +++ b/pywikibot/tools/__init__.py @@ -172,7 +172,7 @@ @type message: str @param category: A class (a subclass of Warning) of which the warning category must be a subclass in order to match. - @type category: Warning + @type category: type @param filename: A string containing a regular expression that the start of the path to the warning module must match. (case-sensitive)
pywikibot-commits@lists.wikimedia.org