a non-dict object is passed as the first argument, a :exc:`~exceptions.TypeError` will be raised.