mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-09 21:04:17 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
72ad6dc953
commit
f4cd1ba0d6
813 changed files with 66015 additions and 58839 deletions
|
|
@ -1,12 +1,13 @@
|
|||
from __future__ import annotations
|
||||
__all__ = [
|
||||
"BaseExceptionGroup",
|
||||
"ExceptionGroup",
|
||||
"catch",
|
||||
"format_exception",
|
||||
"format_exception_only",
|
||||
"print_exception",
|
||||
"print_exc",
|
||||
"suppress",
|
||||
'BaseExceptionGroup',
|
||||
'ExceptionGroup',
|
||||
'catch',
|
||||
'format_exception',
|
||||
'format_exception_only',
|
||||
'print_exception',
|
||||
'print_exc',
|
||||
'suppress',
|
||||
]
|
||||
|
||||
import os
|
||||
|
|
@ -24,7 +25,7 @@ if sys.version_info < (3, 11):
|
|||
print_exception,
|
||||
)
|
||||
|
||||
if os.getenv("EXCEPTIONGROUP_NO_PATCH") != "1":
|
||||
if os.getenv('EXCEPTIONGROUP_NO_PATCH') != '1':
|
||||
from . import _formatting # noqa: F401
|
||||
|
||||
BaseExceptionGroup.__module__ = __name__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue