When using aiofiles like this:
from aiofiles.tempfile import NamedTemporaryFile
async def main():
async with NamedTemporaryFile() as f:
print(f.name)
f.name is reported to be a FileDescriptorOrPath. It should probably be a str instead because that's how it is for the stdlib's tempfile.NamedTemporaryFile and that's the whole point of a named temporary file.
When using
aiofileslike this:f.nameis reported to be aFileDescriptorOrPath. It should probably be astrinstead because that's how it is for the stdlib'stempfile.NamedTemporaryFileand that's the whole point of a named temporary file.