- class neuroglancer.json_wrappers.Map[K, V]
Maps keys of type
K
to values of typeV
.Public members¶
- clear()
Clears the map.
- values() -> ValuesView[V]
Returns a dynamic view of the values in the map.
- get(key: K) -> V | None
- get(key: K, default: V) -> V
- get[T](key: K, default: T) -> V | T
Returns the mapped value, or the specified default.
- __getitem__(key: K) -> V
Returns the mapped value associated with the specified key.
- __setitem__(key: K, value: V)
Sets the specified key to the specified value.
- __delitem__(key: K)
Deletes the entry with the specified key.
- pop(key: K, /) -> V
- pop(key: K, default: V, /) -> V
- pop[T](key: K, default: T, /) -> V | T
Removes and returns the mapped value associated with the specified key.
- to_json()
- __repr__()
Return repr(self).