Skip to content

Add runtime typechecks for screen.find etc. #351

Closed
@s1hofmann

Description

@s1hofmann

Short overview
Methods like find and similar should perform runtime type checks for their correct parameter types.

Use case
Improved DX

Detailed description
Currently a wrong type passed to screen.find instead of a proper Image will result in a cryptic OpenCV error message.
This is not very helpful to debug the actual root cause, so these methods should perform runtime type checks to ensure users are passing an Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancement to existing features

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions