Skip to content

Commit 948de4f

Browse files
xqtjenkins-bot
authored andcommitted
typing: Remove typing_extension; Literal is published with Python 3.8
Change-Id: I8b3c4580e00d4164e6522c9a8a6c6830db113972
1 parent 6e422c4 commit 948de4f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

pywikibot/bot_choice.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Options and Choices for :py:meth:`pywikibot.input_choice`."""
22
#
3-
# (C) Pywikibot team, 2015-2024
3+
# (C) Pywikibot team, 2015-2025
44
#
55
# Distributed under the terms of the MIT license.
66
#
@@ -9,7 +9,7 @@
99
import re
1010
from abc import ABC, abstractmethod
1111
from textwrap import fill
12-
from typing import TYPE_CHECKING, Any
12+
from typing import TYPE_CHECKING
1313

1414
import pywikibot
1515
from pywikibot.backports import Iterable, Mapping, Sequence
@@ -39,7 +39,7 @@
3939

4040

4141
if TYPE_CHECKING:
42-
from typing_extensions import Literal
42+
from typing import Any, Literal
4343

4444
from pywikibot.page import BaseLink, Link, Page
4545

pywikibot/page/_basepage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from contextlib import suppress
1313
from itertools import islice
1414
from textwrap import shorten, wrap
15-
from typing import TYPE_CHECKING, Any, NoReturn
15+
from typing import TYPE_CHECKING
1616
from urllib.parse import quote_from_bytes
1717
from warnings import warn
1818

@@ -46,7 +46,7 @@
4646

4747

4848
if TYPE_CHECKING:
49-
from typing_extensions import Literal
49+
from typing import Any, Literal, NoReturn
5050

5151
from pywikibot.page import Revision
5252

pywikibot/pagegenerators/_factory.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""GeneratorFactory module which handles pagegenerators options."""
22
#
3-
# (C) Pywikibot team, 2008-2024
3+
# (C) Pywikibot team, 2008-2025
44
#
55
# Distributed under the terms of the MIT license.
66
#
@@ -12,7 +12,7 @@
1212
from datetime import timedelta
1313
from functools import partial
1414
from itertools import zip_longest
15-
from typing import TYPE_CHECKING, Any
15+
from typing import TYPE_CHECKING
1616

1717
import pywikibot
1818
from pywikibot import i18n
@@ -62,7 +62,7 @@
6262

6363

6464
if TYPE_CHECKING:
65-
from typing_extensions import Literal
65+
from typing import Any, Literal
6666

6767
from pywikibot.site import BaseSite, Namespace
6868

0 commit comments

Comments
 (0)