Write some bytes to the file. You normally wouldn't use this from a file you read in a request. To be awaitable, compatible with async, this is run in threadpool.
(
self,
data: Annotated[
bytes,
Doc(
"""
The bytes to write to the file.
"""
),
],
)
| 64 | ] |
| 65 | |
| 66 | async def write( |
| 67 | self, |
| 68 | data: Annotated[ |
| 69 | bytes, |
| 70 | Doc( |
| 71 | """ |
| 72 | The bytes to write to the file. |
| 73 | """ |
| 74 | ), |
| 75 | ], |
| 76 | ) -> None: |
| 77 | """ |
| 78 | Write some bytes to the file. |
| 79 | |
| 80 | You normally wouldn't use this from a file you read in a request. |
| 81 | |
| 82 | To be awaitable, compatible with async, this is run in threadpool. |
| 83 | """ |
| 84 | return await super().write(data) |
| 85 | |
| 86 | async def read( |
| 87 | self, |
no outgoing calls