Skip to content

Commit 935a960

Browse files
committed
Add Comment for TryStar Annotation
1 parent 4d56e39 commit 935a960

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/RestrictedPython/transformer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,8 @@ def visit_Try(self, node: ast.Try) -> ast.AST:
11551155
def visit_TryStar(self, node: ast.AST) -> ast.AST:
11561156
"""Disallow `ExceptionGroup` due to a potential sandbox escape.
11571157
1158-
TODO: Type Annotation for node when dropping support for Python < 3.11 should be ast.TryStar.
1158+
TODO: Type Annotation for node when dropping support
1159+
for Python < 3.11 should be ast.TryStar.
11591160
"""
11601161
self.not_allowed(node)
11611162

0 commit comments

Comments
 (0)