You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Considering that type variable defaults can now be used, it makes sense to me to make Process generic over the various streams. In that case, it seems possibly to me to make this work properly, but I haven't looked too closely at it.
Is it true that if using Process[TIN, TOUT, TERR] generic, every function above will require 8 overload alternatives? If so, this solution is questionable, especially regarding that the same problem appears for subprocess module that is already full of overloads.
Is it possible to update
asyncio
stub files so thatasyncio.Process.{stdin,stdout,stderr}
are resolved as non-None by mypy?Example:
Typing error reported by mypy (desired behaviour is no error):
Current
asyncio.Process
declaration in typeshed/stdlib/asyncio/subprocess.pyi:The text was updated successfully, but these errors were encountered: