You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> (lambda **args: args)(**FlexEntity(foo=1, bar=2))
Traceback (most recent call last):
File "<input>", line 1, in <module>
TypeError: attribute of type 'NoneType' is not callable
The solution is to implement the keys() method:
>>> FlexEntity.keys = (lambda e: [key for key, value in e.iteritems()])
>>> (lambda **args: args)(**FlexEntity(foo=1, bar=2))
{'foo': 1, 'bar': 2}
The text was updated successfully, but these errors were encountered:
e.g.
The solution is to implement the
keys()
method:The text was updated successfully, but these errors were encountered: