Closed jakkdl closed 1 year ago
First bullet point of #58
Use trio.open_file() instead of open(), io.open, io.open_code, or os.fdopen in async functions
trio.open_file()
open()
io.open
io.open_code
os.fdopen
Although I guessed that os.fdopen should be wrapped in trio.wrap_file as per the intro
trio.wrap_file
I have no idea how to stop shed/pyupgrade from reformatting io.open into open, tried both #fmt: off and #noqa.
open
#fmt: off
#noqa
First bullet point of #58
Although I guessed that
os.fdopen
should be wrapped intrio.wrap_file
as per the introI have no idea how to stop shed/pyupgrade from reformatting
io.open
intoopen
, tried both#fmt: off
and#noqa
.