Skip to content

Conversation

@brasswood
Copy link
Contributor

Give parameter minSearchTime a default value of 0 in function pyscreeze.locateCenterOnScreen. This should be okay because in the actual library, locateCenterOnScreen just delegates all of its parameters to locateOnScreen, and the type definition here for locateOnScreen gives minSearchTime a default value of 0.

Fixes #13851

give parameter minSearchTime a default value of 0 in function pyscreeze.locateCenterOnScreen.
@github-actions

This comment has been minimized.

Copy link
Contributor Author

@brasswood brasswood left a comment

Choose a reason for hiding this comment

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

Thanks for that catch

@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

vision (https://github.com/pytorch/vision)
- torchvision/utils.py:271: error: Unused "type: ignore" comment  [unused-ignore]

@srittau srittau merged commit 318c868 into python:main Apr 24, 2025
43 checks passed
mmingyu pushed a commit to mmingyu/typeshed that referenced this pull request May 16, 2025
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.

pyscreeze.locateCenterOnScreen should not require minSearchTime parameter

3 participants