Cumulocity-IoT / cumulocity-python-api

Python client for the Cumulocity REST API. Created by Global Competency Center IoT
Apache License 2.0
18 stars 13 forks source link

_DictMapping & ComplexObject both inherit MutableMapping #22

Closed samrimington closed 2 years ago

samrimington commented 2 years ago

ComplexObject inheriting built-in 'dict' meant its repr would always be an empty dictionary.

Instead we inherit MutableMapping to have more control over behaviour and still be able to use dict-like methods.

_DictMapping also inherits MutableMapping to have access to dict-like methods.