Skip to content

Commit

Permalink
Add warning for top-level bang-keys
Browse files Browse the repository at this point in the history
  • Loading branch information
teutoburg committed Nov 13, 2023
1 parent dfa2fe2 commit 22692ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions astar_utils/nested_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ def update(self, new_dict: MutableMapping) -> None:
to_pop = []
for key in new_dict:
if key.startswith("!"):
logging.warning(
"Using bang-strings in KEYS is deprecated and will no "
"longer work in future releases: %s", key)
self[key] = new_dict[key]
to_pop.append(key)
for key in to_pop:
Expand Down

0 comments on commit 22692ca

Please sign in to comment.