sync from Atlas

This commit is contained in:
Luciano Ramalho
2021-09-21 23:31:27 -03:00
parent d59215d332
commit 4f4f759229
3 changed files with 67 additions and 55 deletions

View File

@@ -69,7 +69,7 @@ class Environment(ChainMap[Symbol, Any]):
"Find where key is defined and change the value there."
for map in self.maps:
if key in map:
map[key] = value
map[key] = value # type: ignore[index]
return
raise KeyError(key)
# end::ENV_CLASS[]