Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
74f690a
Update code_object_pickler.py to include consistent pickling for lambdas
kristynsmith Jul 22, 2025
23fa4d8
Create code_object_pickler_test.py
kristynsmith Jul 22, 2025
86e12b2
Update code_object_pickler_test.py
kristynsmith Jul 22, 2025
d17d08a
Create after_module_add_function.py
kristynsmith Jul 22, 2025
6b66de9
Create after_module_add_lambda_variable.py
kristynsmith Jul 22, 2025
a1106e6
Create after_module_add_variable.py
kristynsmith Jul 22, 2025
bbe555c
Create after_module_remove_lambda_variable.py
kristynsmith Jul 22, 2025
4a8d350
Create after_module_remove_variable.py
kristynsmith Jul 22, 2025
3941819
Create after_module_with_classes.py
kristynsmith Jul 22, 2025
c2ab713
Create after_module_with_global_variable.py
kristynsmith Jul 22, 2025
ca853c2
Create after_module_with_nested_function.py
kristynsmith Jul 22, 2025
8c26a6c
Create after_module_with_nested_function_2.py
kristynsmith Jul 22, 2025
40b767c
Create after_module_with_single_class.py
kristynsmith Jul 22, 2025
251b1d7
Create before_module_with_classes.py
kristynsmith Jul 22, 2025
3590211
Create before_module_with_functions.py
kristynsmith Jul 22, 2025
6169dbe
Create before_module_with_lambdas.py
kristynsmith Jul 22, 2025
03ba258
Create module_with_default_argument.py
kristynsmith Jul 22, 2025
f1ce3ca
Create pickle_code_path_test.py
kristynsmith Jul 22, 2025
2e9ff8b
Update code_object_pickler.py
kristynsmith Jul 22, 2025
d940cfa
Update pickle_code_path_test.py
kristynsmith Jul 22, 2025
0438ba4
Update code_object_pickler_test.py
kristynsmith Jul 22, 2025
30ece4b
Update pickle_code_path_test.py
kristynsmith Jul 22, 2025
3dc6856
Update after_module_add_function.py
kristynsmith Jul 22, 2025
74cb523
Update after_module_add_lambda_variable.py
kristynsmith Jul 22, 2025
82e5656
Update after_module_add_variable.py
kristynsmith Jul 22, 2025
0c0cf87
Update after_module_remove_lambda_variable.py
kristynsmith Jul 22, 2025
50011e4
Update after_module_remove_variable.py
kristynsmith Jul 22, 2025
35f2dfe
Update after_module_with_classes.py
kristynsmith Jul 22, 2025
256a010
Update after_module_with_global_variable.py
kristynsmith Jul 22, 2025
4764dea
Update after_module_with_nested_function.py
kristynsmith Jul 22, 2025
a65db8b
Update after_module_with_nested_function_2.py
kristynsmith Jul 22, 2025
dca267f
Update after_module_with_single_class.py
kristynsmith Jul 22, 2025
4b21993
Update before_module_with_classes.py
kristynsmith Jul 22, 2025
996057d
Update before_module_with_functions.py
kristynsmith Jul 22, 2025
4ac3864
Update before_module_with_lambdas.py
kristynsmith Jul 22, 2025
cc91dfe
Update module_with_default_argument.py
kristynsmith Jul 22, 2025
6980387
Update after_module_add_lambda_variable.py
kristynsmith Jul 22, 2025
46de206
Update after_module_with_nested_function.py
kristynsmith Jul 22, 2025
031386a
Update code_object_pickler.py
kristynsmith Jul 22, 2025
640f90b
Update code_object_pickler_test.py
kristynsmith Jul 22, 2025
ef7c54e
Update code_object_pickler_test.py
kristynsmith Jul 22, 2025
6907af4
Update code_object_pickler_test.py
kristynsmith Jul 22, 2025
11bc736
Update code_object_pickler.py
kristynsmith Jul 22, 2025
23d2aea
Update pickle_code_path_test.py
kristynsmith Jul 22, 2025
e0e9b4b
Update after_module_with_nested_function.py
kristynsmith Jul 22, 2025
556526e
Update after_module_with_classes.py
kristynsmith Jul 22, 2025
0469dc8
Update after_module_with_nested_function_2.py
kristynsmith Jul 22, 2025
3c7f4cd
Update code_object_pickler_test.py
kristynsmith Jul 23, 2025
6fb6379
Update code_object_pickler.py
kristynsmith Jul 23, 2025
df6b1f5
Update pickle_code_path_test.py
kristynsmith Jul 23, 2025
b0f71d7
Update pickle_code_path_test.py
kristynsmith Jul 23, 2025
114b65d
Update code_object_pickler.py
kristynsmith Jul 23, 2025
cd3e33f
Update after_module_with_classes.py
kristynsmith Jul 23, 2025
896c7b9
Update after_module_with_nested_function.py
kristynsmith Jul 23, 2025
9d0003d
Update after_module_with_nested_function_2.py
kristynsmith Jul 23, 2025
1db0215
Update code_object_pickler_test.py
kristynsmith Jul 23, 2025
cad4f8a
Update code_object_pickler_test.py
kristynsmith Jul 23, 2025
5b00a85
Update code_object_pickler_test.py
kristynsmith Jul 23, 2025
cd8e722
Update pickle_code_path_test.py
kristynsmith Jul 23, 2025
c18bf04
Update pickle_code_path_test.py
kristynsmith Jul 23, 2025
f77eff0
Create __init__.py
kristynsmith Jul 23, 2025
3ff7cd5
Update before_module_with_classes.py
kristynsmith Jul 23, 2025
defa23c
Update after_module_with_single_class.py
kristynsmith Jul 23, 2025
f2666c4
Update after_module_with_classes.py
kristynsmith Jul 23, 2025
b92abbb
Update pickle_code_path_test.py
kristynsmith Jul 23, 2025
d252143
Update code_object_pickler_test.py
kristynsmith Jul 23, 2025
94e8dbb
Update code_object_pickler_test.py
kristynsmith Jul 24, 2025
d417145
Update pickle_code_path_test.py
kristynsmith Jul 24, 2025
f3ec2f3
Update code_object_pickler_test.py
kristynsmith Jul 24, 2025
c2c4baf
Update pickle_code_path_test.py
kristynsmith Jul 24, 2025
08a421e
Update code_object_pickler_test.py
kristynsmith Jul 24, 2025
3c84563
Update pickle_code_path_test.py
kristynsmith Jul 24, 2025
393091d
Update code_object_pickler_test.py
kristynsmith Jul 25, 2025
c5a985a
Update code_object_pickler_test.py
kristynsmith Jul 25, 2025
60362bc
Update code_object_pickler_test.py
kristynsmith Jul 25, 2025
6708774
Update code_object_pickler_test.py
kristynsmith Jul 28, 2025
6802a64
Update code_object_pickler_test.py
kristynsmith Jul 28, 2025
7592050
Update code_object_pickler_test.py
kristynsmith Jul 28, 2025
b442dec
Update code_object_pickler_test.py
kristynsmith Jul 28, 2025
98df163
Update code_object_pickler_test.py
kristynsmith Jul 28, 2025
226885c
Update code_object_pickler_test.py
kristynsmith Jul 28, 2025
ba55678
Update code_object_pickler_test.py
kristynsmith Jul 29, 2025
4b7505f
Update code_object_pickler_test.py
kristynsmith Jul 29, 2025
4410b25
Update code_object_pickler_test.py
kristynsmith Jul 29, 2025
c275851
Update code_object_pickler_test.py
kristynsmith Aug 5, 2025
cd97273
Update pickle_code_path_test.py
kristynsmith Aug 5, 2025
9ad075d
Update after_module_with_nested_function.py
kristynsmith Aug 5, 2025
51b1c13
Update after_module_with_classes.py
kristynsmith Aug 5, 2025
13f0065
Update after_module_with_single_class.py
kristynsmith Aug 5, 2025
088be84
Update before_module_with_functions.py
kristynsmith Aug 5, 2025
c9547cb
Update after_module_add_lambda_variable.py
kristynsmith Aug 5, 2025
9f73008
Update after_module_with_global_variable.py
kristynsmith Aug 5, 2025
180282d
Update after_module_with_nested_function_2.py
kristynsmith Aug 5, 2025
140bba9
Update after_module_add_function.py
kristynsmith Aug 5, 2025
2fb0791
Update before_module_with_lambdas.py
kristynsmith Aug 5, 2025
51c2766
Update before_module_with_classes.py
kristynsmith Aug 5, 2025
e126130
Update after_module_add_variable.py
kristynsmith Aug 5, 2025
59659bb
Update code_object_pickler.py
kristynsmith Aug 5, 2025
3fde5a0
Update pickle_code_path_test.py
kristynsmith Aug 5, 2025
6ec1d10
Update after_module_add_function.py
kristynsmith Aug 5, 2025
f0d693c
Update after_module_add_lambda_variable.py
kristynsmith Aug 5, 2025
969ec6a
Update after_module_add_function.py
kristynsmith Aug 5, 2025
6fc3920
Update after_module_add_function.py
kristynsmith Aug 5, 2025
e3692a5
Update after_module_add_variable.py
kristynsmith Aug 5, 2025
47de493
Update after_module_remove_lambda_variable.py
kristynsmith Aug 5, 2025
2580238
Update after_module_remove_variable.py
kristynsmith Aug 5, 2025
f36c2be
Update after_module_with_classes.py
kristynsmith Aug 5, 2025
6b63a36
Update after_module_with_global_variable.py
kristynsmith Aug 5, 2025
d3898b3
Update after_module_with_nested_function.py
kristynsmith Aug 5, 2025
152c3d5
Update after_module_with_nested_function_2.py
kristynsmith Aug 5, 2025
f7c18b1
Update after_module_with_single_class.py
kristynsmith Aug 5, 2025
b829f58
Update before_module_with_classes.py
kristynsmith Aug 5, 2025
e0878ae
Update before_module_with_functions.py
kristynsmith Aug 5, 2025
c1374ec
Update before_module_with_lambdas.py
kristynsmith Aug 5, 2025
0435f17
Update module_with_default_argument.py
kristynsmith Aug 5, 2025
d587a46
Update after_module_with_classes.py
kristynsmith Aug 5, 2025
128fbe2
Update before_module_with_classes.py
kristynsmith Aug 5, 2025
6bf9ec6
Update code_object_pickler_test.py
kristynsmith Aug 5, 2025
ffec1ef
Update after_module_add_function.py
kristynsmith Aug 5, 2025
d8005ca
Update pickle_code_path_test.py
kristynsmith Aug 5, 2025
bfec969
Update code_object_pickler_test.py
kristynsmith Aug 5, 2025
3f25da3
Update code_object_pickler.py
kristynsmith Aug 6, 2025
bd63ea5
Update code_object_pickler_test.py
kristynsmith Aug 6, 2025
922ea3a
Update pickle_code_path_test.py
kristynsmith Aug 6, 2025
b82e78f
fix formatting and lint
kristynsmith Aug 6, 2025
1e44280
formatting and lint changes
kristynsmith Aug 6, 2025
211c0f4
Update code_object_pickler.py
kristynsmith Aug 6, 2025
cd83d96
change type hints
kristynsmith Aug 7, 2025
9660d41
fix typo that caused error
kristynsmith Aug 7, 2025
6410707
fix formatting and lint errors
kristynsmith Aug 7, 2025
d49f850
fix typehints
kristynsmith Aug 7, 2025
8f4344b
fix formatting and lint
kristynsmith Aug 8, 2025
a4ebbd5
Update code_object_pickler.py
kristynsmith Aug 11, 2025
bac70eb
Update code_object_pickler.py
kristynsmith Aug 12, 2025
7be70e6
fix union error
kristynsmith Aug 12, 2025
eca023d
import union
kristynsmith Aug 12, 2025
ff59041
update code_object_pickler.py docstring, move pickle_code_path_test.p…
kristynsmith Aug 14, 2025
2a14db5
fix error
kristynsmith Aug 14, 2025
81f5a33
rename functions in code_object_pickler.py
kristynsmith Aug 14, 2025
a17c69d
fix errors
kristynsmith Aug 14, 2025
7ee69f1
fix formatting and lint errors
kristynsmith Aug 14, 2025
a9838a1
Update sdks/python/apache_beam/internal/code_object_pickler.py
tvalentyn Aug 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
461 changes: 461 additions & 0 deletions sdks/python/apache_beam/internal/code_object_pickler.py

Large diffs are not rendered by default.

574 changes: 574 additions & 0 deletions sdks/python/apache_beam/internal/code_object_pickler_test.py

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions sdks/python/apache_beam/internal/test_data/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

"""Test data to validate that code identifiers are invariant to small
modifications.
"""
27 changes: 27 additions & 0 deletions sdks/python/apache_beam/internal/test_data/module_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

"""Module for testing code path generation with functions.
Counterpart to after_module_with_functions and is used as a test case
for various code changes.
"""


def my_function():
a = 1 # pylint: disable=unused-variable
b = lambda: 2
return b
34 changes: 34 additions & 0 deletions sdks/python/apache_beam/internal/test_data/module_1_class_added.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

"""Module for testing code path generation with functions.
Counterpart to before_module_with_functions and is used as a test case
for adding a class.
"""


class MyClass:
def another_function(self):
a = 1 # pylint: disable=unused-variable
b = lambda: 2
return b


def my_function():
a = 1 # pylint: disable=unused-variable
b = lambda: 2
return b
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

"""Module for testing code path generation with functions.
Counterpart to before_module_with_functions and is used as a test case
for adding a function.
"""


def another_function():
a = 1 # pylint: disable=unused-variable
b = lambda: 2
return b


def my_function():
a = 1 # pylint: disable=unused-variable
b = lambda: 2
return b
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

"""Module for testing code path generation with functions.
Counterpart to before_module_with_functions and is used as a test case
for adding a global variable.
"""

GLOBAL_VARIABLE = lambda: 3


def my_function():
a = 1 # pylint: disable=unused-variable
b = lambda: 2
return b
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

"""Module for testing code path generation with functions.
Counterpart to before_module_with_functions and is used as a test case
for adding a lambda variable.
"""


def my_function():
a = 1 # pylint: disable=unused-variable
b = lambda: 2
new_lambda_variable = lambda: 4 # pylint: disable=unused-variable
return b
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

"""Module for testing code path generation with functions.
Counterpart to before_module_with_functions and is used as a test case
for adding a variable.
"""


def my_function():
a = 1 # pylint: disable=unused-variable
b = lambda: 2
new_local_variable = 3 # pylint: disable=unused-variable
return b
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

"""Module for testing code path generation with functions.
Counterpart to before_module_with_functions and is used as a test case
for removing a variable.
"""


def my_function():
b = lambda: 2
return b
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

"""Module for testing code path generation with functions.
Counterpart to before_module_with_functions and is used as a test case
for adding a nested function.
"""


def my_function():
a = 1 # pylint: disable=unused-variable
b = lambda: 2

def nested_function(): # pylint: disable=unused-variable
c = 3
return c

return b
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

"""Module for testing code path generation with functions.
Counterpart to before_module_with_functions and is used as a test case
for adding a nested function.
"""


def my_function():
def nested_function(): # pylint: disable=unused-variable
c = 3
return c

a = 1 # pylint: disable=unused-variable
b = lambda: 2
return b
82 changes: 82 additions & 0 deletions sdks/python/apache_beam/internal/test_data/module_2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

"""Module for testing code path generation with classes.
Counterpart to after_module_with_classes and is used as a test case
for various code changes.
"""


class AddLocalVariable:
def my_method(self):
a = 1 # pylint: disable=unused-variable
b = lambda: 2
return b


class RemoveLocalVariable:
def my_method(self):
a = 1 # pylint: disable=unused-variable
b = lambda: 2
return b


class AddLambdaVariable:
def my_method(self):
a = 1 # pylint: disable=unused-variable
b = lambda: 2
return b


class RemoveLambdaVariable:
def my_method(self):
a = lambda: 1 # pylint: disable=unused-variable
b = lambda: 2
return b


class ClassWithNestedFunction:
def my_method(self):
a = 1 # pylint: disable=unused-variable
b = lambda: 2
return b


class ClassWithNestedFunction2:
def my_method(self):
a = 1 # pylint: disable=unused-variable
b = lambda: 2
return b


class ClassWithTwoMethods:
def my_method(self):
a = 1 # pylint: disable=unused-variable
b = lambda: 2
return b


class RemoveMethod:
def another_method(self):
a = 1 # pylint: disable=unused-variable
b = lambda: 2
return b

def my_method(self):
a = 1 # pylint: disable=unused-variable
b = lambda: 2
return b
Loading
Loading