We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0b55c0 commit 6d52df5Copy full SHA for 6d52df5
intercom/traits/api_resource.py
@@ -34,15 +34,16 @@ def to_datetime_value(value):
34
35
class Resource(object):
36
37
- def __init__(_self, **params):
+ def __init__(_self, **params): # noqa
38
+ # intercom includes a 'self' field in the JSON, to avoid the naming
39
+ # conflict we go with _self here
40
_self.changed_attributes = []
41
_self.from_dict(params)
- self = _self
42
43
if hasattr(_self, 'flat_store_attributes'):
- for attr in self.flat_store_attributes:
44
- if not hasattr(self, attr):
45
- setattr(self, attr, FlatStore())
+ for attr in _self.flat_store_attributes:
+ if not hasattr(_self, attr):
46
+ setattr(_self, attr, FlatStore())
47
48
49
def _flat_store_attribute(self, attribute):
0 commit comments