- class type_param_demo.Derived[U](type_param_demo.Map[int, U])[source]
Map from integer keys to arbitrary values.
Constructors¶
- Derived()[source]
- Derived(items: Mapping[int, U])
- Derived(items: Iterable[tuple[int, U]])
Construct from the specified items.
Public members¶
- values() -> ValuesView[U][source]
Return a dynamic view of the values.
- get(key: int) -> U | None[source]
- get(key: int, default: U) -> U
- get[T](key: int, default: T) -> U | T
Return the mapped value, or the specified default.
- __delitem__(key: int)[source]
Remove the value associated with the specified key.
Last update:
Nov 16, 2024