Overly complicated class with nested references to symbols
| 413 | hidden_constant = lambda: LOCAL_CONSTANT # noqa: E731 |
| 414 | |
| 415 | class SomeClass: |
| 416 | """Overly complicated class with nested references to symbols""" |
| 417 | |
| 418 | def __init__(self, value): |
| 419 | self.value = value |
| 420 | |
| 421 | def one(self): |
| 422 | return LOCAL_CONSTANT / hidden_constant() |
| 423 | |
| 424 | def some_method(self, x): |
| 425 | return self.one() + some_function(x, 1) + self.value |
| 426 | |
| 427 | # pickle the class definition |
| 428 | clone_class = pickle_depickle(SomeClass, protocol=self.protocol) |
no outgoing calls