Passing arguments that are documented defaults for Popen? (such as cwdandenvwhich defaults toNone`) raises an exception while leaving them blank works.
Following small test-program demonstrates it:
import rsloop
import asyncio
async def main():
await asyncio.create_subprocess_exec(
sys.executable,
"-c",
"import sys;sys.exit(0)",
cwd=None,
env=None,
executable=None,
umask=-1,
)
rsloop.run(main()) # TypeError: expected str, bytes or os.PathLike object, not NoneType
At least anyio passes cwd and env explicitly set to None. executable and umask was reported as potentially problematic as well by AI.
Passing arguments that are documented defaults for
Popen? (such ascwdandenvwhich defaults toNone`) raises an exception while leaving them blank works.Following small test-program demonstrates it:
At least anyio passes
cwdandenvexplicitly set toNone. executable and umask was reported as potentially problematic as well by AI.