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

Method clear

src/werkzeug/datastructures/structures.py:1153–1159  ·  view source on GitHub ↗

Clear the set.

(self: te.Self)

Source from the content-addressed store, hash-verified

1151 return rv
1152
1153 def clear(self: te.Self) -> None:
1154 """Clear the set."""
1155 self._set.clear()
1156 self._headers.clear()
1157
1158 if self.on_update is not None:
1159 self.on_update(self)
1160
1161 def as_set(self, preserve_casing: bool = False) -> set[str]:
1162 """Return the set as real python set type. When calling this, all

Callers 2

__setstate__Method · 0.45
__setstate__Method · 0.45

Calls 1

on_updateMethod · 0.45

Tested by

no test coverage detected