mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 12:44:33 +08:00
Import Match and Pattern from re, not typing (#8277)
This commit is contained in:
1 parent
27db37240a
commit
6348a58b8b
78 files changed
+142
-90
No files matched your search
@@ -1,7 +1,8 @@
|
||||
import collections
|
||||
from collections.abc import Callable, Iterable, Iterator
|
||||
from datetime import datetime
|
||||
from typing import ClassVar, Pattern, overload
|
||||
from re import Pattern
|
||||
from typing import ClassVar, overload
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
|
||||
from dateparser import _Settings
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
import sys
|
||||
from re import Pattern
|
||||
|
||||
from dateparser.conf import Settings
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from re import Pattern
|
||||
else:
|
||||
from typing import Pattern
|
||||
|
||||
DIGIT_GROUP_PATTERN: Pattern[str]
|
||||
NUMERAL_PATTERN: Pattern[str]
|
||||
|
||||
|
||||
Reference in new issue
Block a user