gh-128398: improve error messages when incorrectly using `with` and `async with` (#132218)
Improve the error message with a suggestion when an object supporting the synchronous (resp. asynchronous) context manager protocol is entered using `async with` (resp. `with`) instead of `with` (resp. `async with`).
B
Bénédikt Tran committed
8a9c6c4d16a746eea1e000d6701d1c274c1f331b
Parent: 95800fe
Committed by GitHub <noreply@github.com>
on 4/19/2025, 8:44:01 AM