MCPcopy
hub / github.com/scrapy/scrapy / _assert_mutability

Method _assert_mutability

scrapy/settings/__init__.py:616–618  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

614 del self.attributes[name]
615
616 def _assert_mutability(self) -> None:
617 if self.frozen:
618 raise TypeError("Trying to modify an immutable Settings object")
619
620 def copy(self) -> Self:
621 """

Callers 5

setMethod · 0.95
setmoduleMethod · 0.95
updateMethod · 0.95
deleteMethod · 0.95
__delitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected