| 370 | |
| 371 | |
| 372 | class CounterWithDisable: |
| 373 | |
| 374 | def __init__(self): |
| 375 | self.disable = False |
| 376 | self.count = 0 |
| 377 | |
| 378 | def __call__(self, *args): |
| 379 | self.count += 1 |
| 380 | if self.disable: |
| 381 | return sys.monitoring.DISABLE |
| 382 | |
| 383 | |
| 384 | class RecorderWithDisable: |
no outgoing calls
searching dependent graphs…