[aiofiles] aiofiles.tempfile.NamedTemporaryFile.name
should probably be a str
#13551
Labels
stubs: false positive
Type checkers report false errors
When using
aiofiles
like this:f.name
is reported to be aFileDescriptorOrPath
. It should probably be astr
instead because that's how it is for the stdlib'stempfile.NamedTemporaryFile
and that's the whole point of a named temporary file.The text was updated successfully, but these errors were encountered: