aiofiles.tempfiles missing python 3.12-specific overloads for NamedTemporaryFile #12091
Labels
help wanted
An actionable problem of low to medium complexity where a PR would be very welcome
stubs: false positive
Type checkers report false errors
Was digging through things to determine why I was being told by my editor that
aiofiles.tempfile.NamedTemporaryFile
didn't support the py3.12 argumentdelete_on_close
, and it appears that it's that this isn't specified here and that it is not that I'm losing my mind. :)https://github.com/python/typeshed/blob/main/stubs/aiofiles/aiofiles/tempfile/__init__.pyi
If we look through these, there are no python 3.12-specific variants which identify this delete_on_close argument which was added to support the behaviors of the same-named argument added to
tempfiles.NamedTemporaryFile
in python 3.12.We can find the relevant portion of the python 3.12 overload of the
aiofiles.tempfile.NamedTemporaryFile
here:https://github.com/Tinche/aiofiles/blob/v23.2.1/src/aiofiles/tempfile/__init__.py#L24-L61
The text was updated successfully, but these errors were encountered: