Skip to content

Commit

Permalink
assignment warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoud committed Jan 12, 2025
1 parent fb3c4e7 commit b13e704
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions glom/mutation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
:func:`~glom.assign` function, and the :func:`~glom.Assign` specifier
type.
.. warning::
glom's deep assignment is powerful, and incorrect use can result in
unintended assignments to global state, including class and module
attributes, as well as function defaults.
Be careful when writing assignment specs, and especially careful when
any part of the spec is data-driven or provided by an end user.
"""
import operator
from pprint import pprint
Expand Down

0 comments on commit b13e704

Please sign in to comment.