Skip to content

Conversation

@mr-c
Copy link
Contributor

@mr-c mr-c commented Dec 7, 2025

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2025

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

Copy link
Contributor

@donbarbos donbarbos left a comment

Choose a reason for hiding this comment

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

Thank you!

Comment on lines +205 to 206
@overload
def cpu_affinity(self, cpus: list[int] | None = None) -> list[int] | None: ...
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can get rid of the 3rd overload. The first two cover both cases

Suggested change
@overload
def cpu_affinity(self, cpus: list[int] | None = None) -> list[int] | 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.

Probably true for the vast majority of cases, yes; but there are valid reasons to keep the combination, for example if someone is proxying the Process object calls. I defer to you; if you want I can add the removal as a separate commit here and see if there is any impact in mypy_primer.

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.

2 participants