Comment

mataha

TypeVars shouldn't be necessary, you can do just:

from typing import TypeVar, Any

class TrackingDict[K, V](dict[K, V]):
    ...

Parent comment

Peter Bengtsson

Blog post updated, thanks to you! Thanks!