Skip to content

Objects satisfying the core.types.Lock interface should also be hashable#11333

Open
jonathandung wants to merge 3 commits into
pydata:mainfrom
jonathandung:main
Open

Objects satisfying the core.types.Lock interface should also be hashable#11333
jonathandung wants to merge 3 commits into
pydata:mainfrom
jonathandung:main

Conversation

@jonathandung
Copy link
Copy Markdown

Description

Parent: python/typeshed#15754.

Basically, because backends.locks.CombinedLock.__init__ uses set to remove duplicates from a sequence of instances of classes implementing the Lock interface, all locks should be hashable.

Checklist

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant