Skip to content

Commit 8d2f627

Browse files
[pre-commit.ci] pre-commit autoupdate (#113)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.4](astral-sh/ruff-pre-commit@v0.2.2...v0.3.4) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ee53e9f commit 8d2f627

File tree

2 files changed

+14
-27
lines changed

2 files changed

+14
-27
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
- id: trailing-whitespace
1717

1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.2.2
19+
rev: v0.3.4
2020
hooks:
2121
- id: ruff
2222
args: [--fix, --show-fixes]

src/exceptiongroup/_exceptions.py

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -121,21 +121,18 @@ def exceptions(
121121
@overload
122122
def subgroup(
123123
self, __condition: type[_ExceptionT] | tuple[type[_ExceptionT], ...]
124-
) -> ExceptionGroup[_ExceptionT] | None:
125-
...
124+
) -> ExceptionGroup[_ExceptionT] | None: ...
126125

127126
@overload
128127
def subgroup(
129128
self, __condition: type[_BaseExceptionT] | tuple[type[_BaseExceptionT], ...]
130-
) -> BaseExceptionGroup[_BaseExceptionT] | None:
131-
...
129+
) -> BaseExceptionGroup[_BaseExceptionT] | None: ...
132130

133131
@overload
134132
def subgroup(
135133
self,
136134
__condition: Callable[[_BaseExceptionT_co | _BaseExceptionGroupSelf], bool],
137-
) -> BaseExceptionGroup[_BaseExceptionT_co] | None:
138-
...
135+
) -> BaseExceptionGroup[_BaseExceptionT_co] | None: ...
139136

140137
def subgroup(
141138
self,
@@ -176,17 +173,15 @@ def split(
176173
) -> tuple[
177174
ExceptionGroup[_ExceptionT] | None,
178175
BaseExceptionGroup[_BaseExceptionT_co] | None,
179-
]:
180-
...
176+
]: ...
181177

182178
@overload
183179
def split(
184180
self, __condition: type[_BaseExceptionT] | tuple[type[_BaseExceptionT], ...]
185181
) -> tuple[
186182
BaseExceptionGroup[_BaseExceptionT] | None,
187183
BaseExceptionGroup[_BaseExceptionT_co] | None,
188-
]:
189-
...
184+
]: ...
190185

191186
@overload
192187
def split(
@@ -195,8 +190,7 @@ def split(
195190
) -> tuple[
196191
BaseExceptionGroup[_BaseExceptionT_co] | None,
197192
BaseExceptionGroup[_BaseExceptionT_co] | None,
198-
]:
199-
...
193+
]: ...
200194

201195
def split(
202196
self,
@@ -249,14 +243,12 @@ def split(
249243
return matching_group, nonmatching_group
250244

251245
@overload
252-
def derive(self, __excs: Sequence[_ExceptionT]) -> ExceptionGroup[_ExceptionT]:
253-
...
246+
def derive(self, __excs: Sequence[_ExceptionT]) -> ExceptionGroup[_ExceptionT]: ...
254247

255248
@overload
256249
def derive(
257250
self, __excs: Sequence[_BaseExceptionT]
258-
) -> BaseExceptionGroup[_BaseExceptionT]:
259-
...
251+
) -> BaseExceptionGroup[_BaseExceptionT]: ...
260252

261253
def derive(
262254
self, __excs: Sequence[_BaseExceptionT]
@@ -282,20 +274,17 @@ def __new__(
282274
@property
283275
def exceptions(
284276
self,
285-
) -> tuple[_ExceptionT_co | ExceptionGroup[_ExceptionT_co], ...]:
286-
...
277+
) -> tuple[_ExceptionT_co | ExceptionGroup[_ExceptionT_co], ...]: ...
287278

288279
@overload # type: ignore[override]
289280
def subgroup(
290281
self, __condition: type[_ExceptionT] | tuple[type[_ExceptionT], ...]
291-
) -> ExceptionGroup[_ExceptionT] | None:
292-
...
282+
) -> ExceptionGroup[_ExceptionT] | None: ...
293283

294284
@overload
295285
def subgroup(
296286
self, __condition: Callable[[_ExceptionT_co | _ExceptionGroupSelf], bool]
297-
) -> ExceptionGroup[_ExceptionT_co] | None:
298-
...
287+
) -> ExceptionGroup[_ExceptionT_co] | None: ...
299288

300289
def subgroup(
301290
self,
@@ -310,16 +299,14 @@ def split(
310299
self, __condition: type[_ExceptionT] | tuple[type[_ExceptionT], ...]
311300
) -> tuple[
312301
ExceptionGroup[_ExceptionT] | None, ExceptionGroup[_ExceptionT_co] | None
313-
]:
314-
...
302+
]: ...
315303

316304
@overload
317305
def split(
318306
self, __condition: Callable[[_ExceptionT_co | _ExceptionGroupSelf], bool]
319307
) -> tuple[
320308
ExceptionGroup[_ExceptionT_co] | None, ExceptionGroup[_ExceptionT_co] | None
321-
]:
322-
...
309+
]: ...
323310

324311
def split(
325312
self: _ExceptionGroupSelf,

0 commit comments

Comments
 (0)