Closed
Description
Version: 4.3.2
Platform: Python 3.9 (applicable to all)
Description: PR #2137 converted several arguments to redis.lock.Lock.__init__
into keyword only arguments. This is backwards incompatible as it disallows the use of these arguments positionally. Releasing this w/ 4.3.2 also violates semver 😅
The following snippet can be used to repro. It works fine on 4.3.1 but fails on 4.3.2 w/ a TypeError
:
from redis import Redis
from redis.lock import Lock
def main():
r = Redis("localhost:6379")
Lock(r, "schlage", None)
if __name__ == "__main__":
main()
redis432 ❯ python nope.py
Traceback (most recent call last):
File "nope.py", line 9, in <module>
main()
File "nope.py", line 6, in main
Lock(r, "schlage", None)
TypeError: __init__() takes 3 positional arguments but 4 were given
Metadata
Metadata
Assignees
Labels
No labels