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)
--
To view, visit
https://gerrit.wikimedia.org/r/433999
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I4400bfe42981b3b90ab0ada149d07c3548f8161a
Gerrit-Change-Number: 433999
Gerrit-PatchSet: 1
Gerrit-Owner: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>