MCPcopy Create free account
hub / github.com/apache/fory / setdefault

Method setdefault

python/pyfory/lib/collection.py:149–150  ·  view source on GitHub ↗
(self, key, default=None)

Source from the content-addressed store, hash-verified

147 return self.data.pop(IdentityWeakRef(key), *args)
148
149 def setdefault(self, key, default=None):
150 return self.data.setdefault(IdentityWeakRef(key, self._remove), default)
151
152 def update(self, dict=None, **kwargs):
153 d = self.data

Callers 15

_generate_filenameFunction · 0.80
validate_messageMethod · 0.80
validate_enumMethod · 0.80
validate_unionMethod · 0.80
_check_servicesMethod · 0.80
_collect_type_optionsMethod · 0.80
_imported_regsMethod · 0.80

Calls 1

IdentityWeakRefClass · 0.85

Tested by

no test coverage detected