From 43f72534f598aa4bf30d315756f3f5985f5c0bbd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 3 Aug 2024 09:36:01 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks --- stdlib/re.pyi | 8 ++++++-- stubs/openpyxl/openpyxl/descriptors/nested.pyi | 4 +--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/stdlib/re.pyi b/stdlib/re.pyi index d4886d415f59..76f98dd9f2a2 100644 --- a/stdlib/re.pyi +++ b/stdlib/re.pyi @@ -136,7 +136,9 @@ class Pattern(Generic[AnyStr]): @overload def fullmatch(self: Pattern[str], string: str, pos: int = 0, endpos: int = sys.maxsize) -> Match[str] | None: ... @overload - def fullmatch(self: Pattern[bytes], string: ReadableBuffer, pos: int = 0, endpos: int = sys.maxsize) -> Match[bytes] | None: ... + def fullmatch( + self: Pattern[bytes], string: ReadableBuffer, pos: int = 0, endpos: int = sys.maxsize + ) -> Match[bytes] | None: ... @overload def fullmatch(self, string: AnyStr, pos: int = 0, endpos: int = sys.maxsize) -> Match[AnyStr] | None: ... @overload @@ -155,7 +157,9 @@ class Pattern(Generic[AnyStr]): @overload def finditer(self: Pattern[str], string: str, pos: int = 0, endpos: int = sys.maxsize) -> Iterator[Match[str]]: ... @overload - def finditer(self: Pattern[bytes], string: ReadableBuffer, pos: int = 0, endpos: int = sys.maxsize) -> Iterator[Match[bytes]]: ... + def finditer( + self: Pattern[bytes], string: ReadableBuffer, pos: int = 0, endpos: int = sys.maxsize + ) -> Iterator[Match[bytes]]: ... @overload def finditer(self, string: AnyStr, pos: int = 0, endpos: int = sys.maxsize) -> Iterator[Match[AnyStr]]: ... @overload diff --git a/stubs/openpyxl/openpyxl/descriptors/nested.pyi b/stubs/openpyxl/openpyxl/descriptors/nested.pyi index ae71b934ef1f..9b9bbe6dc3d1 100644 --- a/stubs/openpyxl/openpyxl/descriptors/nested.pyi +++ b/stubs/openpyxl/openpyxl/descriptors/nested.pyi @@ -271,8 +271,6 @@ class EmptyTag(Nested[bool], Bool[_N]): # type: ignore[misc] def __set__(self, instance: Serialisable | Strict, value: _HasTagAndGet[_ConvertibleToBool] | _ConvertibleToBool) -> None: ... def from_tree(self, node: Unused) -> Literal[True]: ... @overload - def to_tree( - self, tagname: Unused = None, value: None = None, namespace: Unused = None - ) -> None: ... + def to_tree(self, tagname: Unused = None, value: None = None, namespace: Unused = None) -> None: ... @overload def to_tree(self, tagname: str, value: object, namespace: str | None = None) -> Element: ...