jenkins-bot merged this change.
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.