Marker used to indicate this (list, iter, etc) was constructed in local scope and can be mutated safely in analysis without leaking state.
| 83 | |
| 84 | |
| 85 | class MutableLocal(MutableLocalBase): |
| 86 | """ |
| 87 | Marker used to indicate this (list, iter, etc) was constructed in |
| 88 | local scope and can be mutated safely in analysis without leaking |
| 89 | state. |
| 90 | """ |
| 91 | |
| 92 | def __init__(self): |
| 93 | super().__init__(MutableLocalSource.Local) |
| 94 | |
| 95 | def __hash__(self): |
| 96 | return id(self) |
| 97 | |
| 98 | def __eq__(self, other): |
| 99 | return self is other |
| 100 | |
| 101 | |
| 102 | def _is_top_level_scope(scope_id): |
no outgoing calls
no test coverage detected
searching dependent graphs…