jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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(-)

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 change 433999. To unsubscribe, visit 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@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444@gmail.com>
Gerrit-Reviewer: jenkins-bot <>