Closed raghavj98 closed 6 months ago
Thanks for the report! Are you on the latest release? I believe I already fixed this; it's related to relatively recent changes in CPython.
Thanks for the report! Are you on the latest release? I believe I already fixed this; it's related to relatively recent changes in CPython.
Thanks for the prompt response!
The issue is indeed fixed on 0.11.0. I was on 0.9.0 earlier.
Simple example above should be enough to recreate the issue. Since
open()
calls return aIO[Any]
, which have__enter__
and__exit__
defined, this should be considered a valid context manager. Here is the complete warning for reference.