MCPcopy Create free account
hub / github.com/encode/starlette / update

Method update

starlette/middleware/sessions.py:131–133  ·  view source on GitHub ↗
(self, *args: typing.Any, **kwargs: typing.Any)

Source from the content-addressed store, hash-verified

129 return super().setdefault(key, default)
130
131 def update(self, *args: typing.Any, **kwargs: typing.Any) -> None:
132 self.mark_modified()
133 super().update(*args, **kwargs)
134
135 def __ior__(self, other: typing.Any, /) -> Session: # type: ignore[override,misc]
136 self.mark_modified()

Callers 1

__init__Method · 0.45

Calls 1

mark_modifiedMethod · 0.95

Tested by

no test coverage detected