jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1200473?usp=email )
Change subject: cleanup: remove unused imports in the backports
......................................................................
cleanup: remove unused imports in the backports
Change-Id: Iaa47ce0889b13bd6774d2948479e7b4319b10f3a
---
M pywikibot/backports.py
M tox.ini
2 files changed, 3 insertions(+), 5 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/pywikibot/backports.py b/pywikibot/backports.py
index e8cc09b..5936ab7 100644
--- a/pywikibot/backports.py
+++ b/pywikibot/backports.py
@@ -15,8 +15,7 @@
from __future__ import annotations
import re
-import sys
-from typing import TYPE_CHECKING, Any
+from typing import TYPE_CHECKING
from pywikibot.tools import PYTHON_VERSION, SPHINX_RUNNING
@@ -44,8 +43,8 @@
return zip(a, b)
elif not TYPE_CHECKING:
- from itertools import pairwise
- from types import NoneType
+ from itertools import pairwise # noqa: F401
+ from types import NoneType # noqa: F401
# gh-98363
diff --git a/tox.ini b/tox.ini
index d5839d6..4e72e2a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -168,7 +168,6 @@
per-file-ignores =
pywikibot/_wbtypes.py: N802
- pywikibot/backports.py: F401
pywikibot/bot.py: N802, N816
pywikibot/config.py: N816
pywikibot/cosmetic_changes.py: N802, N803, N806, N816
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1200473?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Iaa47ce0889b13bd6774d2948479e7b4319b10f3a
Gerrit-Change-Number: 1200473
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]