Skip to content

Commit

Permalink
Add a note in Map
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcos Gaeta committed Jan 5, 2022
1 parent 07fae31 commit ee91c62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sentry/analytics/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def extract(self, value: dict[str, Any] | Any | None) -> Mapping[str, Any] | Non
if isinstance(value, dict):
# Ensure we don't mutate the original. We do not need to deepcopy;
# if it recurses into another Map it will once again copy itself.
# TODO(mgaeta): If the dictionary has a list or some other complex
# object in it, that object will not be copied.
items = value.copy()
else:
new_value = {}
Expand Down

0 comments on commit ee91c62

Please sign in to comment.