Skip to content

Commit 13ad3db

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 69619ce commit 13ad3db

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

astroid/protocols.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,11 +538,16 @@ def _generate_assigned():
538538
if isinstance(self.parent, node_classes.TryStar):
539539
# except * handler has assigned ExceptionGroup with caught
540540
# exceptions under exceptions attribute
541-
eg = next(node_classes.unpack_infer(
542-
extract_node('''
541+
eg = next(
542+
node_classes.unpack_infer(
543+
extract_node(
544+
"""
543545
from builtins import ExceptionGroup
544546
ExceptionGroup
545-
''')))
547+
"""
548+
)
549+
)
550+
)
546551
assigned = objects.ExceptionInstance(eg)
547552
assigned.instance_attrs["exceptions"] = [
548553
nodes.List.from_elements(_generate_assigned())

0 commit comments

Comments
 (0)