MCPcopy
hub / github.com/pallets/werkzeug / setdefault

Method setdefault

src/werkzeug/datastructures/mixins.py:117–118  ·  view source on GitHub ↗
(self, key: t.Any, default: t.Any = None)

Source from the content-addressed store, hash-verified

115 return rv
116
117 def setdefault(self, key: t.Any, default: t.Any = None) -> t.NoReturn:
118 _immutable_error(self)
119
120 def update(self, arg: t.Any, /, **kwargs: t.Any) -> t.NoReturn:
121 _immutable_error(self)

Callers

nothing calls this directly

Calls 1

_immutable_errorFunction · 0.85

Tested by

no test coverage detected