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.