mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 19:41:51 +08:00
Import Match and Pattern from re, not typing (#8277)
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
import sys
|
||||
from collections.abc import Iterable, Mapping, Sequence
|
||||
from re import RegexFlag
|
||||
from re import Pattern, RegexFlag
|
||||
from typing import Any
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from re import Pattern
|
||||
else:
|
||||
from typing import Pattern
|
||||
|
||||
__all__ = [
|
||||
"ascii_letters",
|
||||
"ascii_lowercase",
|
||||
|
||||
Reference in New Issue
Block a user