You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For functions like ensure_open_zip, the return value is documented as
:yields: An open file object
so I thought this wold be something I can call e.g., read() on. Checking the type of the returned value, it's contextlib._GeneratorContextManager and it took me a little while to figure out that this means I have to use with to interact with this function. Is the documentation and type annotation for these functions correct?
The text was updated successfully, but these errors were encountered:
For functions like
ensure_open_zip
, the return value is documented asso I thought this wold be something I can call e.g.,
read()
on. Checking the type of the returned value, it'scontextlib._GeneratorContextManager
and it took me a little while to figure out that this means I have to usewith
to interact with this function. Is the documentation and type annotation for these functions correct?The text was updated successfully, but these errors were encountered: