Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions data_structures/hashing/hash_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

from collections.abc import Iterator, MutableMapping
from dataclasses import dataclass
from typing import TypeVar

KEY = TypeVar("KEY")
VAL = TypeVar("VAL")


@dataclass(slots=True)
Expand All @@ -33,7 +29,7 @@ def __bool__(self) -> bool:
_deleted = _DeletedItem()


class HashMap(MutableMapping[KEY, VAL]):
class HashMap[KEY, VAL](MutableMapping[KEY, VAL]):
"""
Hash map with open addressing.
"""
Expand Down
Loading