⬅︎ Back to A Python dict that can report which keys you did not use
TypeVars shouldn't be necessary, you can do just:from typing import TypeVar, Anyclass TrackingDict[K, V](dict[K, V]): ...
Blog post updated, thanks to you! Thanks!
Comment
TypeVars shouldn't be necessary, you can do just:
from typing import TypeVar, Any
class TrackingDict[K, V](dict[K, V]):
...
Parent comment
Blog post updated, thanks to you! Thanks!