diff --git a/stdlib/2/typing.pyi b/stdlib/2/typing.pyi index db7c77a2e..bea5ba985 100644 --- a/stdlib/2/typing.pyi +++ b/stdlib/2/typing.pyi @@ -406,9 +406,9 @@ class Match(Generic[AnyStr]): def groups(self, default: AnyStr = ...) -> Tuple[AnyStr, ...]: ... def groupdict(self, default: AnyStr = ...) -> Dict[str, AnyStr]: ... - def start(self, group: Union[int, str] = ...) -> int: ... - def end(self, group: Union[int, str] = ...) -> int: ... - def span(self, group: Union[int, str] = ...) -> Tuple[int, int]: ... + def start(self, __group: Union[int, str] = ...) -> int: ... + def end(self, __group: Union[int, str] = ...) -> int: ... + def span(self, __group: Union[int, str] = ...) -> Tuple[int, int]: ... @property def regs(self) -> Tuple[Tuple[int, int], ...]: ... # undocumented diff --git a/stdlib/3/re.pyi b/stdlib/3/re.pyi index 259f787c6..bfab4819a 100644 --- a/stdlib/3/re.pyi +++ b/stdlib/3/re.pyi @@ -154,7 +154,7 @@ def subn(pattern: Pattern[AnyStr], repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ..., flags: _FlagsType = ...) -> Tuple[AnyStr, int]: ... -def escape(string: AnyStr) -> AnyStr: ... +def escape(pattern: AnyStr) -> AnyStr: ... def purge() -> None: ... def template(pattern: Union[AnyStr, Pattern[AnyStr]], flags: _FlagsType = ...) -> Pattern[AnyStr]: ... diff --git a/stdlib/3/typing.pyi b/stdlib/3/typing.pyi index b6a0bb39d..2f7d69b19 100644 --- a/stdlib/3/typing.pyi +++ b/stdlib/3/typing.pyi @@ -559,9 +559,9 @@ class Match(Generic[AnyStr]): def groups(self, default: AnyStr = ...) -> Sequence[AnyStr]: ... def groupdict(self, default: AnyStr = ...) -> dict[str, AnyStr]: ... - def start(self, group: Union[int, str] = ...) -> int: ... - def end(self, group: Union[int, str] = ...) -> int: ... - def span(self, group: Union[int, str] = ...) -> Tuple[int, int]: ... + def start(self, __group: Union[int, str] = ...) -> int: ... + def end(self, __group: Union[int, str] = ...) -> int: ... + def span(self, __group: Union[int, str] = ...) -> Tuple[int, int]: ... @property def regs(self) -> Tuple[Tuple[int, int], ...]: ... # undocumented if sys.version_info >= (3, 6): diff --git a/tests/stubtest_whitelists/py38.txt b/tests/stubtest_whitelists/py38.txt index ec63cb14e..1c800f387 100644 --- a/tests/stubtest_whitelists/py38.txt +++ b/tests/stubtest_whitelists/py38.txt @@ -198,9 +198,6 @@ pyclbr.Function.__init__ queue.SimpleQueue.__init__ random.Random.getrandbits random.getrandbits -re.Match.end -re.Match.span -re.Match.start resource.getrlimit resource.getrusage resource.setrlimit diff --git a/tests/stubtest_whitelists/py3_common.txt b/tests/stubtest_whitelists/py3_common.txt index 287d5bc0a..60b0b2853 100644 --- a/tests/stubtest_whitelists/py3_common.txt +++ b/tests/stubtest_whitelists/py3_common.txt @@ -608,7 +608,6 @@ random.Random.triangular random.SystemRandom.getstate random.randrange random.triangular -re.escape runpy.run_path sched.Event.__doc__ select.EPOLL_RDHUP