jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1172854?usp=email )
Change subject: typing: Remove typing_extension; Literal is published with
Python 3.8
......................................................................
typing: Remove typing_extension; Literal is published with Python 3.8
Change-Id: I8b3c4580e00d4164e6522c9a8a6c6830db113972
---
M pywikibot/bot_choice.py
M pywikibot/page/_basepage.py
M pywikibot/pagegenerators/_factory.py
3 files changed, 8 insertions(+), 8 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/pywikibot/bot_choice.py b/pywikibot/bot_choice.py
index f4ced79..23785e2 100644
--- a/pywikibot/bot_choice.py
+++ b/pywikibot/bot_choice.py
@@ -1,6 +1,6 @@
"""Options and Choices for :py:meth:`pywikibot.input_choice`."""
#
-# (C) Pywikibot team, 2015-2024
+# (C) Pywikibot team, 2015-2025
#
# Distributed under the terms of the MIT license.
#
@@ -9,7 +9,7 @@
import re
from abc import ABC, abstractmethod
from textwrap import fill
-from typing import TYPE_CHECKING, Any
+from typing import TYPE_CHECKING
import pywikibot
from pywikibot.backports import Iterable, Mapping, Sequence
@@ -39,7 +39,7 @@
if TYPE_CHECKING:
- from typing_extensions import Literal
+ from typing import Any, Literal
from pywikibot.page import BaseLink, Link, Page
diff --git a/pywikibot/page/_basepage.py b/pywikibot/page/_basepage.py
index c3f9678..39bc1a0 100644
--- a/pywikibot/page/_basepage.py
+++ b/pywikibot/page/_basepage.py
@@ -12,7 +12,7 @@
from contextlib import suppress
from itertools import islice
from textwrap import shorten, wrap
-from typing import TYPE_CHECKING, Any, NoReturn
+from typing import TYPE_CHECKING
from urllib.parse import quote_from_bytes
from warnings import warn
@@ -46,7 +46,7 @@
if TYPE_CHECKING:
- from typing_extensions import Literal
+ from typing import Any, Literal, NoReturn
from pywikibot.page import Revision
diff --git a/pywikibot/pagegenerators/_factory.py
b/pywikibot/pagegenerators/_factory.py
index 3c076de..249466d 100644
--- a/pywikibot/pagegenerators/_factory.py
+++ b/pywikibot/pagegenerators/_factory.py
@@ -1,6 +1,6 @@
"""GeneratorFactory module which handles pagegenerators options."""
#
-# (C) Pywikibot team, 2008-2024
+# (C) Pywikibot team, 2008-2025
#
# Distributed under the terms of the MIT license.
#
@@ -12,7 +12,7 @@
from datetime import timedelta
from functools import partial
from itertools import zip_longest
-from typing import TYPE_CHECKING, Any
+from typing import TYPE_CHECKING
import pywikibot
from pywikibot import i18n
@@ -62,7 +62,7 @@
if TYPE_CHECKING:
- from typing_extensions import Literal
+ from typing import Any, Literal
from pywikibot.site import BaseSite, Namespace
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1172854?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: I8b3c4580e00d4164e6522c9a8a6c6830db113972
Gerrit-Change-Number: 1172854
Gerrit-PatchSet: 3
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]