We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f86b0f4 commit bbcf6feCopy full SHA for bbcf6fe
unpythonic/env.py
@@ -60,6 +60,7 @@ def __init__(self, **bindings):
60
# https://docs.python.org/3/reference/datamodel.html#object.__setattr__
61
# https://docs.python.org/3/reference/datamodel.html#object.__getattr__
62
def __setattr__(self, name, value):
63
+ # TODO: doesn't protect against client code writing to the _direct_write names.
64
if name in self._direct_write: # hook to allow creating internal variables directly in self
65
return super().__setattr__(name, value)
66
if name in self._reserved_names:
0 commit comments