mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import enum
|
||||
import sys
|
||||
from sre_constants import error as error
|
||||
from typing import Any, AnyStr, Callable, Iterator, Tuple, Union, overload
|
||||
from typing import Any, AnyStr, Callable, Iterator, Union, overload
|
||||
|
||||
# ----- re variables and constants -----
|
||||
if sys.version_info >= (3, 7):
|
||||
@@ -99,19 +99,19 @@ def sub(
|
||||
pattern: Pattern[AnyStr], repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ..., flags: _FlagsType = ...
|
||||
) -> AnyStr: ...
|
||||
@overload
|
||||
def subn(pattern: AnyStr, repl: AnyStr, string: AnyStr, count: int = ..., flags: _FlagsType = ...) -> Tuple[AnyStr, int]: ...
|
||||
def subn(pattern: AnyStr, repl: AnyStr, string: AnyStr, count: int = ..., flags: _FlagsType = ...) -> tuple[AnyStr, int]: ...
|
||||
@overload
|
||||
def subn(
|
||||
pattern: AnyStr, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ..., flags: _FlagsType = ...
|
||||
) -> Tuple[AnyStr, int]: ...
|
||||
) -> tuple[AnyStr, int]: ...
|
||||
@overload
|
||||
def subn(
|
||||
pattern: Pattern[AnyStr], repl: AnyStr, string: AnyStr, count: int = ..., flags: _FlagsType = ...
|
||||
) -> Tuple[AnyStr, int]: ...
|
||||
) -> tuple[AnyStr, int]: ...
|
||||
@overload
|
||||
def subn(
|
||||
pattern: Pattern[AnyStr], repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ..., flags: _FlagsType = ...
|
||||
) -> Tuple[AnyStr, int]: ...
|
||||
) -> tuple[AnyStr, int]: ...
|
||||
def escape(pattern: AnyStr) -> AnyStr: ...
|
||||
def purge() -> None: ...
|
||||
def template(pattern: AnyStr | Pattern[AnyStr], flags: _FlagsType = ...) -> Pattern[AnyStr]: ...
|
||||
|
||||
Reference in New Issue
Block a user