Skip to content

Commit aa7879d

Browse files
committed
ingore exec
1 parent de0e103 commit aa7879d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdks/python/apache_beam/transforms/ptransform_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2915,7 +2915,7 @@ class PTransformTypeAliasTest(unittest.TestCase):
29152915
@unittest.skipIf(sys.version_info < (3, 12), "Python 3.12 required")
29162916
def test_type_alias_statement_supported_in_with_output_types(self):
29172917
ns = {}
2918-
exec("type InputType = tuple[int, ...]", ns)
2918+
exec("type InputType = tuple[int, ...]", ns) # pylint: disable=exec-used
29192919
InputType = ns["InputType"]
29202920

29212921
def print_element(element: InputType) -> InputType:
@@ -2931,7 +2931,7 @@ def print_element(element: InputType) -> InputType:
29312931
@unittest.skipIf(sys.version_info < (3, 12), "Python 3.12 required")
29322932
def test_type_alias_supported_in_ptransform_with_output_types(self):
29332933
ns = {}
2934-
exec("type OutputType = tuple[int, int]", ns)
2934+
exec("type OutputType = tuple[int, int]", ns) # pylint: disable=exec-used
29352935
OutputType = ns["OutputType"]
29362936

29372937
with beam.Pipeline() as p:

0 commit comments

Comments
 (0)