GH-131513: Cases generator: Allow dead inputs to be reassigned (GH-131515)

This commit is contained in:
Mark Shannon 2025-03-21 11:38:17 +00:00 committed by GitHub
parent b70d45ab22
commit d3f6063af1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 71 additions and 17 deletions

View file

@ -63,6 +63,10 @@ class Local:
def from_memory(defn: StackItem) -> "Local":
return Local(defn, True, True, True)
def kill(self) -> None:
self.defined = False
self.in_memory = False
def copy(self) -> "Local":
return Local(
self.item,