MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / as_readonly

Method as_readonly

lib/sqlalchemy/util/_collections.py:204–207  ·  view source on GitHub ↗

Return an immutable proxy for this :class:`.Properties`.

(self)

Source from the content-addressed store, hash-verified

202 return key in self._data
203
204 def as_readonly(self) -> ReadOnlyProperties[_T]:
205 """Return an immutable proxy for this :class:`.Properties`."""
206
207 return ReadOnlyProperties(self._data)
208
209 def update(self, value: Dict[str, _T]) -> None:
210 self._data.update(value)

Callers 15

columnsMethod · 0.45
cMethod · 0.45
__init__Method · 0.45
test_keysMethod · 0.45
test_valuesMethod · 0.45
test_itemsMethod · 0.45
test_replaceMethod · 0.45

Calls 1

ReadOnlyPropertiesClass · 0.85

Tested by 14

test_keysMethod · 0.36
test_valuesMethod · 0.36
test_itemsMethod · 0.36
test_replaceMethod · 0.36
test_replace_no_matchMethod · 0.36
test_removeMethod · 0.36