jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1366071?usp=email )
Change subject: cleanup: Drop Python 3.9 code in backports.py
......................................................................
cleanup: Drop Python 3.9 code in backports.py
Bug: T423572
Change-Id: I74f95c470a7f7be238564163e0dbc6d8b87d1568
---
M pywikibot/backports.py
1 file changed, 4 insertions(+), 5 deletions(-)
Approvals:
Mahveotm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/backports.py b/pywikibot/backports.py
index bbbeb96..7f1d0d6 100644
--- a/pywikibot/backports.py
+++ b/pywikibot/backports.py
@@ -305,12 +305,11 @@
# Python < 3.12 or GraalPy
return sys._getframe(d).f_globals.get('__name__', default)
- if PYTHON_VERSION >= (3, 10):
- def __or__(self, other: object) -> Any:
- return Union[self, other]
+ def __or__(self, other: object) -> Any:
+ return Union[self, other]
- def __ror__(self, other: object) -> Any:
- return Union[other, self]
+ def __ror__(self, other: object) -> Any:
+ return Union[other, self]
else:
from builtins import ( # type: ignore[no-redef, attr-defined] # noqa:
TC003, E501
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1366071?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: I74f95c470a7f7be238564163e0dbc6d8b87d1568
Gerrit-Change-Number: 1366071
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Mahveotm <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]