mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
The Lock class as a property local that has a token property that sometimes needs be accessed / set. ```python lock = redis.lock(key) lock.local.token = token lock.extend(10) ``` Technically the type of `local` is `SimpleNamespace | threading.local` but I think this setup is a bit stricter but satisfies the API.