Skip to content

Conversation

donBarbos
Copy link
Contributor

@donBarbos donBarbos commented Oct 19, 2025

Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

def set_spawning_popen(popen: Any) -> None: ...

if sys.platform != "win32":
def get_spawning_popen() -> popen_forkserver.Popen | popen_spawn_posix.Popen | None: ...
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I use here popen_fork.Popen | None? (popen_fork.Popen is parent for popen_forkserver.Popen and popen_spawn_posix.Popen)
and Protocol for returns types "_DupFd" below? (instead of popen_forkserver._DupFd | popen_spawn_posix._DupFd | resource_sharer.DupFd)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant