most asyncio lock methods always return True#7122
Conversation
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Akuli
left a comment
There was a problem hiding this comment.
This is correct, although I don't understand why always returning True would be a good idea.
|
@Akuli I just came across this ticket trying to trace why mypy is suddenly failing a custom asyncio Semaphore implementation I have. While I get where @graingert is coming from, those methods returned Asyncio has neither of these features built-in, instead preferring to let the user wrap it up in something like This change isn't really a problem, as I can just update my code, but I figured I'd drop the context for anyone else trying to figure out what happened. Putting the exact mypy error here for search engine indexing: |
No description provided.