MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / __setstate__

Method __setstate__

googleapiclient/discovery.py:1473–1481  ·  view source on GitHub ↗

Reconstitute the state of the object from being pickled. Uses the fact that the instance variable _dynamic_attrs holds attrs that will be wiped and restored on pickle serialization.

(self, state)

Source from the content-addressed store, hash-verified

1471 return state_dict
1472
1473 def __setstate__(self, state):
1474 """Reconstitute the state of the object from being pickled.
1475
1476 Uses the fact that the instance variable _dynamic_attrs holds attrs that
1477 will be wiped and restored on pickle serialization.
1478 """
1479 self.__dict__.update(state)
1480 self._dynamic_attrs = []
1481 self._set_service_methods()
1482
1483 def __enter__(self):
1484 return self

Callers

nothing calls this directly

Calls 2

_set_service_methodsMethod · 0.95
updateMethod · 0.80

Tested by

no test coverage detected